- separate_arguments(sep_cxx_flags UNIX_COMMAND ${cxx_flags})
- add_compile_options(${sep_cxx_flags})
+ if(CMAKE_VERSION VERSION_LESS 3.12)
+ separate_arguments(sep_cxx_flags UNIX_COMMAND ${cxx_flags})
+ add_compile_options(${sep_cxx_flags})
+ else()
+ add_compile_options("SHELL:${cxx_flags}")
+ endif()