From c2535903386f3bdfd7ff164456443a9dd053a062 Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Sat, 5 Jul 2025 22:56:42 +0100 Subject: [PATCH] Restore previous interpretation of OPENMW_CXX_FLAGS It used to be copied as-is into the command-line options for the compiler, whereas add_compile_options expects a list of arguments. separate_arguments can be used to split a string how the system would split a command line. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e4880a88e..f5a7d55bd5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -638,6 +638,7 @@ else () endif () if (OPENMW_CXX_FLAGS) + separate_arguments(OPENMW_CXX_FLAGS NATIVE_COMMAND "${OPENMW_CXX_FLAGS}") add_compile_options(${OPENMW_CXX_FLAGS}) endif()