mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
cmake: avoid killing CMAKE_C_FLAGS
https://github.com/warmcat/libwebsockets/issues/1252
This commit is contained in:
parent
27e86e2641
commit
87bb121b47
1 changed files with 2 additions and 2 deletions
|
@ -997,9 +997,9 @@ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR (CMAKE_C_COMPILER_ID
|
|||
endif()
|
||||
|
||||
if (CMAKE_BUILD_TYPE MATCHES "DEBUG")
|
||||
set(CMAKE_C_FLAGS "-O0" ${CMAKE_C_FLAGS})
|
||||
set(CMAKE_C_FLAGS "-O0 ${CMAKE_C_FLAGS}")
|
||||
else()
|
||||
set(CMAKE_C_FLAGS "-O3" ${CMAKE_C_FLAGS})
|
||||
set(CMAKE_C_FLAGS "-O3 ${CMAKE_C_FLAGS}")
|
||||
endif()
|
||||
|
||||
if (UNIX AND NOT LWS_WITH_ESP32)
|
||||
|
|
Loading…
Add table
Reference in a new issue