mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 14:21:04 +08:00
Fixed CMAKE_CXX_FLAGS being treated as a list when SFML_ENABLE_SANITIZERS is enabled.
This commit is contained in:
parent
7ec3760fe8
commit
88e9d4c0b3
@ -201,7 +201,7 @@ endif()
|
|||||||
|
|
||||||
option(SFML_ENABLE_SANITIZERS "Enable sanitizers" OFF)
|
option(SFML_ENABLE_SANITIZERS "Enable sanitizers" OFF)
|
||||||
if(SFML_ENABLE_SANITIZERS)
|
if(SFML_ENABLE_SANITIZERS)
|
||||||
list(APPEND CMAKE_CXX_FLAGS "-fno-omit-frame-pointer -fno-sanitize-recover=all -fsanitize=undefined")
|
string(APPEND CMAKE_CXX_FLAGS " -fno-omit-frame-pointer -fno-sanitize-recover=all -fsanitize=undefined")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# set the output directory for SFML DLLs and executables
|
# set the output directory for SFML DLLs and executables
|
||||||
|
Loading…
Reference in New Issue
Block a user