Updated std to C++20.
This commit is contained in:
parent
458fec9499
commit
9d2b5fe0e4
1 changed files with 2 additions and 2 deletions
|
|
@ -15,11 +15,11 @@ function(init_target target_name) # init_target(my_target folder_name)
|
||||||
if (${ARGV1} STREQUAL cxx_std_14 OR ${ARGV1} STREQUAL cxx_std_11)
|
if (${ARGV1} STREQUAL cxx_std_14 OR ${ARGV1} STREQUAL cxx_std_11)
|
||||||
target_compile_features(${target_name} PUBLIC ${ARGV1})
|
target_compile_features(${target_name} PUBLIC ${ARGV1})
|
||||||
else()
|
else()
|
||||||
target_compile_features(${target_name} PUBLIC cxx_std_17)
|
target_compile_features(${target_name} PUBLIC cxx_std_20)
|
||||||
init_target_folder(${target_name} ${ARGV1})
|
init_target_folder(${target_name} ${ARGV1})
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
target_compile_features(${target_name} PUBLIC cxx_std_17)
|
target_compile_features(${target_name} PUBLIC cxx_std_20)
|
||||||
endif()
|
endif()
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set_target_properties(${target_name} PROPERTIES
|
set_target_properties(${target_name} PROPERTIES
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue