mirror of
https://github.com/yawut/SDL.git
synced 2026-04-25 15:58:04 -05:00
CMake: only set "-O3 -g" defaults if CMAKE_BUILD_TYPE wasn't set at all.
This commit is contained in:
parent
19ea7d41a4
commit
e616988fd6
|
|
@ -158,8 +158,10 @@ endif()
|
|||
|
||||
# Default flags, if not set otherwise
|
||||
if("$ENV{CFLAGS}" STREQUAL "")
|
||||
if(USE_GCC OR USE_CLANG)
|
||||
set(CMAKE_C_FLAGS "-g -O3")
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "")
|
||||
if(USE_GCC OR USE_CLANG)
|
||||
set(CMAKE_C_FLAGS "-g -O3")
|
||||
endif()
|
||||
endif()
|
||||
else()
|
||||
set(CMAKE_C_FLAGS "$ENV{CFLAGS}")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user