Skip to content

Commit 34fb706

Browse files
committed
CMake: Reduce optimization level for tests
Reducing to -O0 disables precompiled headers and actually increases build time.
1 parent 38f6a5a commit 34fb706

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/unit/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
# by the Free Software Foundation.
1010
# See the COPYING file for more information.
1111
################################################################################
12+
1213
file(GLOB_RECURSE _sources ${CMAKE_CURRENT_LIST_DIR}/*.cpp CONFIGURE_DEPEND)
14+
set_source_files_properties(${_sources} PROPERTIES COMPILE_FLAGS -O1)
1315
add_executable(test_geos_unit ${_sources})
1416
unset(_sources)
1517

0 commit comments

Comments
 (0)