[CMAKE] Move ccache related handling to the gcc set.
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 21 Feb 2015 14:40:14 +0000 (14:40 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 21 Feb 2015 14:40:14 +0000 (14:40 +0000)
svn path=/trunk/; revision=66389

reactos/CMakeLists.txt
reactos/cmake/gcc.cmake

index 152d0c0..4c2e55f 100644 (file)
@@ -102,11 +102,6 @@ else()
     #useful stuff!
     include(CMakeParseArguments)
 
-    if(ENABLE_CCACHE)
-        set(CMAKE_C_USE_RESPONSE_FILE_FOR_INCLUDES OFF)
-        set(CMAKE_CXX_USE_RESPONSE_FILE_FOR_INCLUDES OFF)
-    endif()
-
     # Default to Debug for the build type
     set(CMAKE_BUILD_TYPE "Debug" CACHE STRING
 "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel." FORCE)
index 8117cf3..6da9d73 100644 (file)
@@ -2,6 +2,8 @@
 # Show a note about ccache build
 if(ENABLE_CCACHE)
     message("-- Enabling ccache build - done")
+    set(CMAKE_C_USE_RESPONSE_FILE_FOR_INCLUDES OFF)
+    set(CMAKE_CXX_USE_RESPONSE_FILE_FOR_INCLUDES OFF)
 endif()
 
 # PDB style debug info