Skip to content
Snippets Groups Projects
Commit 2a2e88fc authored by Tom Fischer's avatar Tom Fischer
Browse files

Merge pull request #938 from bilke/ccache

Enable ccache
parents 15dfd711 eff88134
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,10 @@ if(COMPILER_IS_CLANG)
include(ClangSanitizer)
if(CCACHE_FOUND AND APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Qunused-arguments")
endif()
endif() # COMPILER_IS_CLANG
### Intel compiler
......
......@@ -129,3 +129,9 @@ if(OGS_USE_MPI)
include_directories(SYSTEM ${MPI_CXX_INCLUDE_PATH})
endif()
## CCache
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
endif(CCACHE_FOUND)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment