mirror of
https://github.com/triqs/dft_tools
synced 2024-12-23 04:43:42 +01:00
[cmake] Extend extract_flags.cmake to include cxx_std_23
This commit is contained in:
parent
089a5f5ab2
commit
f23ebdf228
@ -60,7 +60,9 @@ macro(extract_flags)
|
|||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
get_property_recursive(cxx_features TARGET ${target} PROPERTY INTERFACE_COMPILE_FEATURES)
|
get_property_recursive(cxx_features TARGET ${target} PROPERTY INTERFACE_COMPILE_FEATURES)
|
||||||
if(cxx_std_20 IN_LIST cxx_features)
|
if(cxx_std_23 IN_LIST cxx_features)
|
||||||
|
set(${target}_CXXFLAGS "${${target}_CXXFLAGS} -std=c++2b")
|
||||||
|
elseif(cxx_std_20 IN_LIST cxx_features)
|
||||||
set(${target}_CXXFLAGS "${${target}_CXXFLAGS} -std=c++20")
|
set(${target}_CXXFLAGS "${${target}_CXXFLAGS} -std=c++20")
|
||||||
elseif(cxx_std_17 IN_LIST cxx_features)
|
elseif(cxx_std_17 IN_LIST cxx_features)
|
||||||
set(${target}_CXXFLAGS "${${target}_CXXFLAGS} -std=c++17")
|
set(${target}_CXXFLAGS "${${target}_CXXFLAGS} -std=c++17")
|
||||||
|
Loading…
Reference in New Issue
Block a user