From b1171f83c1d1ad0dfa41cb7aff9e64a137a93021 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Thu, 1 Jul 2021 13:12:17 +0200 Subject: [PATCH] CMake build: Enable BUILD_WITH_PCH for builds with Qt 6 The issues have been fixed in the meantime Fixes: QTCREATORBUG-25950 Change-Id: I22cf765acd3008a5b216a9e6afe5854589c7b515 Reviewed-by: Mahmoud Badri Reviewed-by: Alessandro Portale --- CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e7aa764b2e..3a25deece0b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,20 +52,17 @@ find_package(Qt5 ) if (Qt5_VERSION VERSION_LESS 6.0.0) install(TARGETS Qt6Core5Compat EXPORT QtCreator) - set(BUILD_WITH_PCH_DEFAULT ON) # Specify standards conformance mode to MSVC 2017 and later # Qt6 has the values as part of the Qt6::Platform target interface if (MSVC AND MSVC_VERSION GREATER_EQUAL 1910) add_compile_options(/permissive- /Zc:__cplusplus) endif() -else() - set(BUILD_WITH_PCH_DEFAULT OFF) endif() find_package(Qt5 COMPONENTS LinguistTools QUIET) find_package(Qt5 COMPONENTS Designer DesignerComponents Help SerialPort Svg Tools QUIET) -option(BUILD_WITH_PCH "Build with precompiled headers" ${BUILD_WITH_PCH_DEFAULT}) +option(BUILD_WITH_PCH "Build with precompiled headers" ON) find_package(Threads) find_package(Clang QUIET)