Skip to content

Commit

Permalink
Disable CMake unity builds
Browse files Browse the repository at this point in the history
The don't work in scitokens-cpp, but they wouldn't speed up builds
much anyway, as there aren't a huge number of .cpp files per library.
So, don't bother to fix the multiple inclusions problems that unity
builds create, just disable the feature here.

Turning this off does allow scitokens-cpp to be built in a larger
project that does turn on unity builds globally.
  • Loading branch information
GregThain committed Jul 31, 2024
1 parent 6fced37 commit 35c103b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ set( CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake;${CMAKE_MODULE_PATH}" )

set( CMAKE_BUILD_TYPE RelWithDebInfo) # -g -O2

set( CMAKE_UNITY_BUILD False)

include(GNUInstallDirs)

find_package( jwt-cpp REQUIRED )
Expand Down

0 comments on commit 35c103b

Please sign in to comment.