From 88e9d4c0b3dbb0a3d52b66fa1f49f9bd80d139e5 Mon Sep 17 00:00:00 2001 From: binary1248 Date: Thu, 28 Mar 2024 03:32:34 +0100 Subject: [PATCH] Fixed CMAKE_CXX_FLAGS being treated as a list when SFML_ENABLE_SANITIZERS is enabled. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c9f4c6fce..bc0dbab30 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -201,7 +201,7 @@ endif() option(SFML_ENABLE_SANITIZERS "Enable sanitizers" OFF) 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() # set the output directory for SFML DLLs and executables