mirror of
https://github.com/azahar-emu/azahar.git
synced 2025-04-28 13:47:59 +03:00
cmake: Fixed compilation failure if CMAKE_CXX_FLAGS
is an empty string
This commit is contained in:
parent
5b910d6f0e
commit
2b0d412070
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ else()
|
|||
)
|
||||
|
||||
# If we define _FORTIFY_SOURCE when it is already defined, compilation will fail
|
||||
string(FIND "-D_FORTIFY_SOURCE" ${CMAKE_CXX_FLAGS} FORTIFY_SOURCE_DEFINED)
|
||||
string(FIND "-D_FORTIFY_SOURCE" "${CMAKE_CXX_FLAGS} " FORTIFY_SOURCE_DEFINED)
|
||||
|
||||
if (NOT CMAKE_BUILD_TYPE STREQUAL Debug AND NOT FORTIFY_SOURCE_DEFINED)
|
||||
# _FORTIFY_SOURCE can't be used without optimizations.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue