From 35c103bd03ac866aa30e4c54cb473b4c8f722936 Mon Sep 17 00:00:00 2001 From: Greg Thain Date: Wed, 31 Jul 2024 09:54:20 -0500 Subject: [PATCH] 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. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 99ea5a1..230741d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 )