Skip to content

Commit

Permalink
Merge pull request #256 from KIT-CMS/ccache
Browse files Browse the repository at this point in the history
add ccache to build commands
  • Loading branch information
ralfschmieder committed Apr 9, 2024
2 parents a6e7583 + 3791dca commit a324896
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions cmake/ParseArguments.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ else()
set(CMAKE_CXX_FLAGS_RELEASE
"-O3 -DNDEBUG"
CACHE STRING "Set default compiler flags for build type Release")
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND)
message(STATUS "ccache found at ${CCACHE_FOUND}, using it for compilation")
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_FOUND}")
endif()
else()
message(STATUS "Unoptimized mode")
set(CMAKE_BUILD_TYPE
Expand Down
2 changes: 1 addition & 1 deletion data/jsonpog-integration
Submodule jsonpog-integration updated from e13b31 to c45f31

0 comments on commit a324896

Please sign in to comment.