1
0
Fork 0

Updated std to C++20.

This commit is contained in:
23rd 2019-12-11 18:44:40 +03:00 committed by John Preston
parent 458fec9499
commit 9d2b5fe0e4

View file

@ -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)
target_compile_features(${target_name} PUBLIC ${ARGV1})
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})
endif()
else()
target_compile_features(${target_name} PUBLIC cxx_std_17)
target_compile_features(${target_name} PUBLIC cxx_std_20)
endif()
if (WIN32)
set_target_properties(${target_name} PROPERTIES