From 8e4b0fdfe8172d9c1c9f13bd507b85759ea22a59 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Sun, 16 Feb 2020 10:35:08 -0500 Subject: [PATCH] Use found ccache binary * Instead of relying on ccache program name use the found binary from the find_program results. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f1f5c328a6..20d6149367 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()