aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2020-05-07 18:15:47 +0200
committerCristian Adam <cristian.adam@qt.io>2020-05-07 16:29:13 +0000
commit646d26b9cbeb477b5b7389937ac32f477fb285e7 (patch)
tree617742069ad92bff5fda3216e924d7de8157260c
parent27ea67728f681a246c7146d997a18367df52c3b5 (diff)
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>
-rw-r--r--cmake/QtCreatorAPI.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/QtCreatorAPI.cmake b/cmake/QtCreatorAPI.cmake
index f6387b7919..d88cff2fc6 100644
--- a/cmake/QtCreatorAPI.cmake
+++ b/cmake/QtCreatorAPI.cmake
@@ -3,6 +3,10 @@ if(QT_CREATOR_API_DEFINED)
endif()
set(QT_CREATOR_API_DEFINED TRUE)
+if (CMAKE_VERSION VERSION_LESS 3.16)
+ set(BUILD_WITH_PCH OFF)
+endif()
+
include(FeatureSummary)
#