[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Tue, 18 Feb 2014 11:12:26 +0000 (11:12 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Tue, 18 Feb 2014 11:12:26 +0000 (11:12 +0000)
* Set the default PCH value only if it's not already set.

svn path=/trunk/; revision=62241

reactos/CMakeLists.txt

index 5d09f92..6814331 100644 (file)
@@ -134,7 +134,7 @@ else()
         add_definitions(-D_WINKD_=1)
     endif()
 
-    if(CMAKE_VERSION STREQUAL "2.8.12.1-ReactOS")
+    if((NOT DEFINED PCH) AND (CMAKE_VERSION STREQUAL "2.8.12.1-ReactOS"))
         set(PCH 1)
     else()
         set(PCH 0)