We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
CMAKE_LANG_COMPILER_LAUNCHER
1 parent 631ba9f commit ead1dc8Copy full SHA for ead1dc8
1 file changed
CMakeLists.txt
@@ -34,8 +34,9 @@ target_architecture(PCAPP_TARGET_ARCHITECTURE)
34
find_program(CCACHE_PROGRAM ccache)
35
if(CCACHE_PROGRAM)
36
message(STATUS "Ccache found!")
37
- set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
38
- set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK "${CCACHE_PROGRAM}")
+ message(VERBOSE "Ccache program: ${CCACHE_PROGRAM}")
+ set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
39
+ set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
40
else()
41
message(STATUS "Ccache not found!")
42
endif()
0 commit comments