CMake Build: Set BUID_WITH_PCH to OFF if CMake version less 3.16

Change-Id: I11a58cf2e67272b9d45a877dfa20c089706cfc2a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Cristian Adam
2020-05-07 18:15:47 +02:00
parent 27ea67728f
commit 646d26b9cb

View File

@@ -3,6 +3,10 @@ if(QT_CREATOR_API_DEFINED)
endif() endif()
set(QT_CREATOR_API_DEFINED TRUE) set(QT_CREATOR_API_DEFINED TRUE)
if (CMAKE_VERSION VERSION_LESS 3.16)
set(BUILD_WITH_PCH OFF)
endif()
include(FeatureSummary) include(FeatureSummary)
# #