Author: jgardou
Date: Mon Aug  4 11:05:09 2014
New Revision: 63799

URL: http://svn.reactos.org/svn/reactos?rev=63799&view=rev
Log:
[CMAKE]
 - Use cache to decide whether we use precompiled headers or not.

Modified:
    trunk/reactos/CMakeLists.txt

Modified: trunk/reactos/CMakeLists.txt
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/CMakeLists.txt?rev=63799&r1=63798&r2=63799&view=diff
==============================================================================
--- trunk/reactos/CMakeLists.txt        [iso-8859-1] (original)
+++ trunk/reactos/CMakeLists.txt        [iso-8859-1] Mon Aug  4 11:05:09 2014
@@ -137,10 +137,10 @@
         add_definitions(-D_WINKD_=1)
     endif()
 
-    if((NOT DEFINED PCH) AND (CMAKE_VERSION STREQUAL "2.8.12.1-ReactOS") AND 
(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang"))
-        set(PCH 1)
-    else()
-        set(PCH 0)
+    if((CMAKE_VERSION STREQUAL "2.8.12.1-ReactOS") AND (NOT 
CMAKE_C_COMPILER_ID STREQUAL "Clang"))
+        set(PCH 1 CACHE BOOL "Whether to use precompiled headers")
+    else()
+        set(PCH 0 CACHE BOOL "Whether to use precompiled headers")
     endif()
 
     # Version Options


Reply via email to