diff options
author | fuzzard <fuzzard@kodi.tv> | 2021-11-12 11:53:34 +1000 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2021-11-18 10:51:46 +1000 |
commit | 67922584f9c0b58f56ef8b6159f23373f7c4d6cc (patch) | |
tree | 122f831f5098c36ed907b91a7a863d3deccd4a00 /cmake/modules | |
parent | 7478f983b67dc1e3b09e061acf2eaa675b0f0170 (diff) |
[cmake] use modern CMAKE_XXX_COMPILER_LAUNCHER instead of global RULE_LAUNCH_COMPILE
Diffstat (limited to 'cmake/modules')
-rw-r--r-- | cmake/modules/FindCCache.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/modules/FindCCache.cmake b/cmake/modules/FindCCache.cmake index 0f6463b709..69e4947a2f 100644 --- a/cmake/modules/FindCCache.cmake +++ b/cmake/modules/FindCCache.cmake @@ -13,8 +13,8 @@ find_package_handle_standard_args(CCache REQUIRED_VARS CCACHE_PROGRAM) if(CCACHE_FOUND) # Supports Unix Makefiles, Ninja and Xcode - set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}") - set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK "${CCACHE_PROGRAM}") + set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM}" CACHE STRING "" FORCE) + set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_PROGRAM}" CACHE STRING "" FORCE) file(WRITE "${CMAKE_BINARY_DIR}/launch-c" "#!/bin/sh\nexec \"${CCACHE_PROGRAM}\" \"${CMAKE_C_COMPILER}\" \"$@\"\n") file(WRITE "${CMAKE_BINARY_DIR}/launch-cxx" "#!/bin/sh\nexec \"${CCACHE_PROGRAM}\" \"${CMAKE_CXX_COMPILER}\" \"$@\"\n") |