Fix cmake file o3 flag

This commit is contained in:
NepDisk 2025-06-30 16:23:24 -04:00
parent c95225d382
commit 285aeee849

View file

@ -214,7 +214,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STRE
target_compile_options(SRB2SDL2 PRIVATE -mno-ms-bitfields) target_compile_options(SRB2SDL2 PRIVATE -mno-ms-bitfields)
endif() endif()
if ("${CMAKE_BUILD_TYPE EQUAL}" NOT STREQUAL "Debug") if (${CMAKE_BUILD_TYPE} MATCHES Release OR (${CMAKE_BUILD_TYPE} MATCHES RelWithDebInfo))
target_compile_options(SRB2SDL2 PRIVATE -O3) target_compile_options(SRB2SDL2 PRIVATE -O3)
endif() endif()