fix: set public compiler flags on library targets

POCO_STATIC: has to be set when using poco as static library
POCO_NO_ATUMATIC_LIBS: CMake config module will find the correct libraries.
  Don't need to guess in headers.
This commit is contained in:
Csaba Keszegh
2015-09-15 10:02:38 +02:00
parent a190f5e660
commit 61305c01ee
20 changed files with 21 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ target_include_directories( "${LIBNAME}"
$<INSTALL_INTERFACE:include>
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src
)
target_compile_definitions("${LIBNAME}" PUBLIC ${LIB_MODE_DEFINITIONS})
POCO_INSTALL("${LIBNAME}")
POCO_GENERATE_PACKAGE("${LIBNAME}")