[CMAKE] Fix build with CMake 3.17.1-ReactOS (RosBE 2.2)

This commit is contained in:
Victor Perevertkin 2020-04-27 03:40:48 +03:00
parent 70b6658af8
commit 8639a131b0
No known key found for this signature in database
GPG key ID: C750B7222E9C7830

View file

@ -139,7 +139,7 @@ else()
add_definitions(-D_WINKD_)
endif()
if(CMAKE_VERSION MATCHES "ReactOS")
if(CMAKE_VERSION MATCHES "ReactOS" AND CMAKE_VERSION VERSION_LESS 3.3.0)
set(PCH 1 CACHE BOOL "Whether to use precompiled headers")
else()
set(PCH 0 CACHE BOOL "Whether to use precompiled headers")