Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavrax committed Aug 5, 2024
1 parent 49380a1 commit 3c85313
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3c85313

Please sign in to comment.