Skip to content

Commit

Permalink
Use ccache but only if is available.
Browse files Browse the repository at this point in the history
  • Loading branch information
galegosimpatico committed Jun 15, 2015
1 parent 8a75b10 commit a5d6eb0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Expand Up @@ -367,9 +367,11 @@ set(ANURA_SOURCE_FILES
src/wml_formula_callable
)

set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)

set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK 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)

add_executable(
anura
Expand Down

0 comments on commit a5d6eb0

Please sign in to comment.