Fix cmake file o3 flag
This commit is contained in:
parent
c95225d382
commit
285aeee849
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
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)
|
||||
endif()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue