We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeabc29 commit 0c2c7bcCopy full SHA for 0c2c7bc
CMakeLists.txt
@@ -57,6 +57,12 @@ if(NOT CMAKE_BUILD_TYPE)
57
set(CMAKE_BUILD_TYPE Debug)
58
endif()
59
60
+find_program(SCCACHE sccache)
61
+if(SCCACHE)
62
+ set(CMAKE_C_COMPILER_LAUNCHER ${SCCACHE} CACHE STRING "C compiler launcher" FORCE)
63
+ set(CMAKE_CXX_COMPILER_LAUNCHER ${SCCACHE} CACHE STRING "C++ compiler launcher" FORCE)
64
+endif()
65
+
66
# Setup RPATH.
67
# See https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/RPATH-handling
68
# Use separate rpaths during build and install phases
0 commit comments