mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-11-27 06:30:28 +08:00
Use old syntax for CMake's separate_arguments() to restore compatiblity with old CMake versions.
This commit is contained in:
parent
3e7bcf54f7
commit
e67c494cba
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user