Fixed CMAKE_CXX_FLAGS being treated as a list when SFML_ENABLE_SANITIZERS is enabled.

This commit is contained in:
binary1248 2024-03-28 03:32:34 +01:00 committed by Chris Thrasher
parent 7ec3760fe8
commit 88e9d4c0b3

View File

@ -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