From 34fb7063aef63196a301de9d0d1d2072cc3aaf24 Mon Sep 17 00:00:00 2001 From: Daniel Baston Date: Thu, 15 Aug 2024 14:12:19 -0400 Subject: [PATCH] CMake: Reduce optimization level for tests Reducing to -O0 disables precompiled headers and actually increases build time. --- tests/unit/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/CMakeLists.txt b/tests/unit/CMakeLists.txt index 855641ed3..1a611a0bb 100644 --- a/tests/unit/CMakeLists.txt +++ b/tests/unit/CMakeLists.txt @@ -9,7 +9,9 @@ # by the Free Software Foundation. # See the COPYING file for more information. ################################################################################ + file(GLOB_RECURSE _sources ${CMAKE_CURRENT_LIST_DIR}/*.cpp CONFIGURE_DEPEND) +set_source_files_properties(${_sources} PROPERTIES COMPILE_FLAGS -O1) add_executable(test_geos_unit ${_sources}) unset(_sources)