Skip to content

Commit

Permalink
CMake: Reduce optimization level for tests
Browse files Browse the repository at this point in the history
Reducing to -O0 disables precompiled headers and actually increases
build time.
  • Loading branch information
dbaston committed Aug 15, 2024
1 parent 4bef727 commit 4be3d40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 4be3d40

Please sign in to comment.