From e67c494cba7180066e73b9f6234d0b2129f1cdf5 Mon Sep 17 00:00:00 2001 From: Morris Hafner Date: Wed, 13 Nov 2024 17:01:13 +0000 Subject: [PATCH] Use old syntax for CMake's separate_arguments() to restore compatiblity with old CMake versions. --- cmake/EigenTesting.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/EigenTesting.cmake b/cmake/EigenTesting.cmake index f81c76d43..b37d1158b 100644 --- a/cmake/EigenTesting.cmake +++ b/cmake/EigenTesting.cmake @@ -81,8 +81,9 @@ macro(ei_add_test_internal testname testname_with_suffix) # let the user pass flags. if(${ARGC} GREATER 2) - separate_arguments(compile_options NATIVE_COMMAND ${ARGV2}) - ei_add_target_property(${targetname} COMPILE_FLAGS "${ARGV2}") + set(compile_options "${ARGV2}") + separate_arguments(compile_options) + ei_add_target_property(${targetname} COMPILE_FLAGS ${compile_options}) endif() if(EIGEN_TEST_CUSTOM_CXX_FLAGS)