Skip to content

Commit

Permalink
CMake: Disable precompiled headers
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaston committed Aug 15, 2024
1 parent 34fb706 commit 97f59c2
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,10 @@ target_include_directories(test_geos_unit
PRIVATE
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>)

# 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
"$<$<CXX_COMPILER_ID:GNU>:${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})
Expand Down

0 comments on commit 97f59c2

Please sign in to comment.