From cbb6d64036407da1f5363ea46d90cbf4213665d9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Mon, 4 Aug 2014 11:05:09 +0000 Subject: [PATCH] [CMAKE] - Use cache to decide whether we use precompiled headers or not. svn path=/trunk/; revision=63799 --- reactos/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/CMakeLists.txt b/reactos/CMakeLists.txt index d4736894667..3d438d53350 100644 --- a/reactos/CMakeLists.txt +++ b/reactos/CMakeLists.txt @@ -137,10 +137,10 @@ else() 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) + 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) + set(PCH 0 CACHE BOOL "Whether to use precompiled headers") endif() # Version Options -- 2.17.1