forked from qt-creator/qt-creator
cmake build: Disable PCH for CMake < 3.18 with GCC
https://gitlab.kitware.com/cmake/cmake/-/issues/20119 was fixed in CMake 3.18. Change-Id: Iad335e8c7a70069404f5c80bb3b65c0d52f82393 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
committed by
Cristian Adam
parent
cd0a140bde
commit
44d31cb687
@@ -1,5 +1,7 @@
|
||||
if (CMAKE_VERSION VERSION_LESS 3.16)
|
||||
set(BUILD_WITH_PCH OFF)
|
||||
if (CMAKE_VERSION VERSION_LESS 3.18)
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL GNU OR CMAKE_VERSION VERSION_LESS 3.16)
|
||||
set(BUILD_WITH_PCH OFF)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
include(FeatureSummary)
|
||||
|
||||
Reference in New Issue
Block a user