From 1b029f2bdde028daeeb4e8011ba2abe1e7ce3ed9 Mon Sep 17 00:00:00 2001 From: Lukas Solanka Date: Fri, 4 May 2018 23:10:52 +0100 Subject: [PATCH] add target_compile_definitions --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 587459f..b1bba29 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,8 +27,6 @@ set(GENERIC_LIB_SOVERSION "6") ################################ # Add definitions -set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DTINYXML2_DEBUG") - ################################ # Add targets # By Default shared libray is being built @@ -54,6 +52,7 @@ set_target_properties(tinyxml2 PROPERTIES VERSION "${GENERIC_LIB_VERSION}" SOVERSION "${GENERIC_LIB_SOVERSION}") +target_compile_definitions(tinyxml2 PUBLIC $<$:TINYXML2_DEBUG>) if(DEFINED CMAKE_VERSION AND NOT "${CMAKE_VERSION}" VERSION_LESS "2.8.11") target_include_directories(tinyxml2 PUBLIC