We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4af241b commit b8fe333Copy full SHA for b8fe333
CMakeLists.txt
@@ -185,7 +185,7 @@ else()
185
string(REGEX REPLACE "-DNDEBUG[ \t\r\n]*" "" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
186
string(REGEX REPLACE "-DNDEBUG[ \t\r\n]*" "" CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL}")
187
# Prefer -O2 optimization level. (-O3 is CMake's default for Release for many compilers.)
188
- string(REGEX REPLACE "-O3[ \t\r\n]*" "-O2" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
+ string(REGEX REPLACE "-O3( |$)" "-O2\\1" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
189
endif()
190
191
# Define custom "Coverage" build type.
0 commit comments