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