mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
CMake: only set "-O3 -g" defaults if CMAKE_BUILD_TYPE wasn't set at all.
This commit is contained in:
parent
06129f6de9
commit
1615b2e29d
@ -158,9 +158,11 @@ endif()
|
|||||||
|
|
||||||
# Default flags, if not set otherwise
|
# Default flags, if not set otherwise
|
||||||
if("$ENV{CFLAGS}" STREQUAL "")
|
if("$ENV{CFLAGS}" STREQUAL "")
|
||||||
|
if(CMAKE_BUILD_TYPE STREQUAL "")
|
||||||
if(USE_GCC OR USE_CLANG)
|
if(USE_GCC OR USE_CLANG)
|
||||||
set(CMAKE_C_FLAGS "-g -O3")
|
set(CMAKE_C_FLAGS "-g -O3")
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
set(CMAKE_C_FLAGS "$ENV{CFLAGS}")
|
set(CMAKE_C_FLAGS "$ENV{CFLAGS}")
|
||||||
list(APPEND EXTRA_CFLAGS "$ENV{CFLAGS}")
|
list(APPEND EXTRA_CFLAGS "$ENV{CFLAGS}")
|
||||||
|
Loading…
Reference in New Issue
Block a user