From 957845f5a4ed8919164dfd469890732b65b40831 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Wed, 7 Mar 2018 17:02:59 -0800 Subject: [PATCH] CMake: Don't bother compiling zlibstatic. We don't use zlibstatic so exclude it from ALL_BUILD and Wireshrk.sln. Change-Id: I9656b6f1c35e43cce89c8879f4521f6dc4a5cbdf Reviewed-on: https://code.wireshark.org/review/26349 Petri-Dish: Gerald Combs Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dd394501c7..e4104f1a87 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -959,7 +959,11 @@ if(ENABLE_ZLIB) set(ZLIB_DLL "zlib1.dll") set_target_properties(zlib PROPERTIES FOLDER "Libs/zlib") # Annoyingly zlib also builds some other stuff we aren't interested in - set_target_properties(zlibstatic PROPERTIES FOLDER "Libs/zlib") + set_target_properties(zlibstatic PROPERTIES + FOLDER "Libs/zlib" + EXCLUDE_FROM_ALL True + EXCLUDE_FROM_DEFAULT_BUILD True + ) endif() set(PACKAGELIST ${PACKAGELIST} ZLIB) endif()