Skip to content

Commit

Permalink
Use found ccache binary
Browse files Browse the repository at this point in the history
* Instead of relying on ccache program name use the found binary from the find_program results.
  • Loading branch information
droidmonkey committed Mar 19, 2020
1 parent 5927b62 commit 8e4b0fd
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 @@ -62,9 +62,9 @@ endif()
if(WITH_CCACHE)
# Use the Compiler Cache (ccache) program
# (install with: sudo apt get ccache)
find_program (CCACHE_FOUND ccache)
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE_FOUND})
else()
message(FATAL_ERROR "ccache requested but cannot be found.")
endif()
Expand Down

0 comments on commit 8e4b0fd

Please sign in to comment.