From 646d26b9cbeb477b5b7389937ac32f477fb285e7 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Thu, 7 May 2020 18:15:47 +0200 Subject: CMake Build: Set BUID_WITH_PCH to OFF if CMake version less 3.16 Change-Id: I11a58cf2e67272b9d45a877dfa20c089706cfc2a Reviewed-by: Alessandro Portale --- cmake/QtCreatorAPI.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmake') diff --git a/cmake/QtCreatorAPI.cmake b/cmake/QtCreatorAPI.cmake index f6387b7919f..d88cff2fc66 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) # -- cgit v1.2.3