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 <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
Gerald Combs 2018-03-07 17:02:59 -08:00
parent 39a65995cc
commit 957845f5a4
1 changed files with 5 additions and 1 deletions

View File

@ -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()