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.
This commit is contained in:
AnyOldName3 2025-07-05 22:56:42 +01:00
parent da32ccee50
commit c253590338

View File

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