Use found ccache binary

* Instead of relying on ccache program name use the found binary from the find_program results.
This commit is contained in:
Jonathan White 2020-02-16 10:35:08 -05:00
parent 5927b6298d
commit 8e4b0fdfe8

View File

@ -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()