From 97f59c200226d1af75e7640a721e9893797a255a Mon Sep 17 00:00:00 2001 From: Daniel Baston Date: Thu, 15 Aug 2024 14:59:53 -0400 Subject: [PATCH] CMake: Disable precompiled headers --- tests/unit/CMakeLists.txt | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/unit/CMakeLists.txt b/tests/unit/CMakeLists.txt index 1a611a0bb..3dd430bb5 100644 --- a/tests/unit/CMakeLists.txt +++ b/tests/unit/CMakeLists.txt @@ -22,13 +22,10 @@ target_include_directories(test_geos_unit PRIVATE $) -# Precompile TUT when using gcc -# Some clang and MSVC CI configurations complain about the combination of -# PCH and -O1 -if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.16") - target_precompile_headers(test_geos_unit PRIVATE - "$<$:${CMAKE_CURRENT_LIST_DIR}/tut/tut.hpp>") -endif() +# Precompile TUT +#if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.16") +# target_precompile_headers(test_geos_unit PRIVATE "${CMAKE_CURRENT_LIST_DIR}/tut/tut.hpp") +#endif() file(GLOB_RECURSE _testfiles ${CMAKE_CURRENT_LIST_DIR}/**/*Test.cpp CONFIGURE_DEPEND) foreach(_testfile ${_testfiles})