diff --git a/CMakeLists.txt b/CMakeLists.txt index 027406d6..8d1e204f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -149,7 +149,6 @@ if(NOT ${CUSTOM_BOOL_TYPE} STREQUAL "") set(FLAGS "\ ${FLAGS} \ -D PUBNUB_BOOL_TYPE=${CUSTOM_BOOL_TYPE}") - target_compile_definitions(pubnub PRIVATE "PUBNUB_BOOL_TYPE=${CUSTOM_BOOL_TYPE}") endif() set(CORE_SOURCEFILES @@ -503,6 +502,10 @@ if(NOT ESP_PLATFORM) add_library(pubnub ${LIBTYPE} ${SOURCEFILES}) + if(NOT ${CUSTOM_BOOL_TYPE} STREQUAL "") + target_compile_definitions(pubnub PUBLIC PUBNUB_BOOL_TYPE=${CUSTOM_BOOL_TYPE}) + endif() + target_include_directories(pubnub PUBLIC ${CMAKE_CURRENT_LIST_DIR} ${CMAKE_CURRENT_LIST_DIR}/core