Skip to content

Commit 35c103b

Browse files
committed
Disable CMake unity builds
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.
1 parent 6fced37 commit 35c103b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ set( CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake;${CMAKE_MODULE_PATH}" )
1313

1414
set( CMAKE_BUILD_TYPE RelWithDebInfo) # -g -O2
1515

16+
set( CMAKE_UNITY_BUILD False)
17+
1618
include(GNUInstallDirs)
1719

1820
find_package( jwt-cpp REQUIRED )

0 commit comments

Comments
 (0)