Skip to content

Commit

Permalink
Merge pull request #276 from patstew/ccache-fix
Browse files Browse the repository at this point in the history
cmake: Only use ccache for C++
  • Loading branch information
arximboldi authored Jan 17, 2024
2 parents d7984f4 + 72da7a6 commit fe0b6f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ find_package(Boost 1.56 COMPONENTS ${immer_boost_components})
find_program(CCACHE ccache)
if (CCACHE)
message(STATUS "Using ccache: ${CCACHE}")
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE})
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE})
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE})
set(CMAKE_CXX_LINKER_LAUNCHER ${CCACHE})
else()
message(STATUS "Could not find ccache")
endif()
Expand Down

0 comments on commit fe0b6f8

Please sign in to comment.