mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +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