From: Ali Abdulkadir Date: Mon, 18 Sep 2017 03:23:15 +0000 (+0300) Subject: Added if block around set_target_properties X-Git-Tag: libpcap-1.9-bp~664^2 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/325d2deaa5c76d89212d155d7568ab643bd4104c Added if block around set_target_properties added by commit 3c4120 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 7982dfbe..811b3d13 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -799,7 +799,9 @@ if(MSVC) string(REGEX REPLACE "/Zi" "" ${DBG_FLAGS} "${${DBG_FLAGS}}") endforeach(DBG_FLAGS) - set_target_properties(${LIBRARY_NAME} PROPERTIES COMPILE_OPTIONS "/Zi") + if(BUILD_SHARED_LIBS) + set_target_properties(${LIBRARY_NAME} PROPERTIES COMPILE_OPTIONS "/Zi") + endif(BUILD_SHARED_LIBS) set_target_properties(${LIBRARY_NAME}_static PROPERTIES OUTPUT_NAME "${LIBRARY_NAME}_static" COMPILE_OPTIONS "/Z7") else(MSVC) set_target_properties(${LIBRARY_NAME}_static PROPERTIES OUTPUT_NAME "${LIBRARY_NAME}")