Define ccache as OBJCXX compiler launcher on apple platforms
[novacoin.git] / CMakeLists.txt
index ea528b4..4a53e43 100644 (file)
@@ -25,9 +25,11 @@ endif()
 
 find_program(CCACHE_FOUND ccache)
 if(CCACHE_FOUND)
-    set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
     set(CMAKE_C_COMPILER_LAUNCHER ccache)
     set(CMAKE_CXX_COMPILER_LAUNCHER ccache)
+    if (APPLE)
+    set(CMAKE_OBJCXX_COMPILER_LAUNCHER ccache)
+    endif()
 endif(CCACHE_FOUND)
 
 set(CMAKE_AUTOMOC ON)