Disable PCH use in ccache builds.
authorSylvain Petreolle <spetreolle@yahoo.fr>
Sat, 21 Feb 2015 14:24:19 +0000 (14:24 +0000)
committerSylvain Petreolle <spetreolle@yahoo.fr>
Sat, 21 Feb 2015 14:24:19 +0000 (14:24 +0000)
svn path=/trunk/; revision=66386

reactos/CMakeLists.txt

index 152d0c0..905972d 100644 (file)
@@ -142,7 +142,7 @@ else()
         add_definitions(-D_WINKD_=1)
     endif()
 
-    if(CMAKE_VERSION STREQUAL "2.8.12.1-ReactOS")
+    if(CMAKE_VERSION STREQUAL "2.8.12.1-ReactOS" AND NOT ENABLE_CCACHE)
         set(PCH 1 CACHE BOOL "Whether to use precompiled headers")
     else()
         set(PCH 0 CACHE BOOL "Whether to use precompiled headers")