From 483b43cc6afc1d11627ab984757605bff3f29896 Mon Sep 17 00:00:00 2001 From: Harmen Wierenga Date: Thu, 28 May 2026 14:49:32 +0200 Subject: [PATCH] Fix CMake syntax for appending to space separated string --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 11bb68f164..5141a1ba68 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -129,8 +129,8 @@ endif() if (CMAKE_CXX_COMPILER_ID STREQUAL "IntelLLVM") # Intel CXX compiler based on clang defaults to -ffast-math, which # breaks std::isinf(), std::isnan(), etc. - set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} -fno-fast-math) - set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -fno-fast-math) + string(APPEND CMAKE_C_FLAGS " -fno-fast-math") + string(APPEND CMAKE_CXX_FLAGS " -fno-fast-math") endif () # Add other supported compiler flags