Prepend ccache as it should be first

This commit is contained in:
Mark Roszko 2024-05-07 15:14:54 +00:00
parent 8aab764c33
commit 87ba1e18bf
1 changed files with 2 additions and 2 deletions

View File

@ -355,8 +355,8 @@ if (USE_CCACHE)
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND)
# Set ccache on the actual lang
list(APPEND CMAKE_C_COMPILER_LAUNCHER ${CCACHE_FOUND})
list(APPEND CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE_FOUND})
list(PREPEND CMAKE_C_COMPILER_LAUNCHER ${CCACHE_FOUND})
list(PREPEND CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE_FOUND})
message(STATUS "Used ${CCACHE_FOUND} for compilation.")
else(CCACHE_FOUND)