Skip to content

Commit

Permalink
Updated std to C++20.
Browse files Browse the repository at this point in the history
  • Loading branch information
23rd authored and john-preston committed Jan 18, 2020
1 parent 458fec9 commit 9d2b5fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init_target.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d2b5fe

Please sign in to comment.