Skip to content

Commit

Permalink
fix: compilation with unity build
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Sep 28, 2024
1 parent bea9662 commit 40b3414
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmake/modules/CanaryLib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ add_subdirectory(utils)
target_sources(${PROJECT_NAME}_lib PRIVATE canary_server.cpp)

# Add public pre compiler header to lib, to pass down to related targets
if (NOT SPEED_UP_BUILD_UNITY)
target_precompile_headers(${PROJECT_NAME}_lib PUBLIC pch.hpp)
endif()
target_precompile_headers(${PROJECT_NAME}_lib PUBLIC pch.hpp)


if(NOT SPEED_UP_BUILD_UNITY AND USE_PRECOMPILED_HEADERS)
if(USE_PRECOMPILED_HEADERS)
target_compile_definitions(${PROJECT_NAME}_lib PUBLIC -DUSE_PRECOMPILED_HEADERS)
endif()

Expand Down

0 comments on commit 40b3414

Please sign in to comment.