From 4be3d40a6d37f8420efc1cee84d92607bebe4ed8 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 089d441e91..e03442c120 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)