Skip to content

Commit

Permalink
Allow access to range / format
Browse files Browse the repository at this point in the history
  • Loading branch information
Guekka committed Dec 11, 2021
1 parent 342cfad commit 9b13bf1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,13 @@ endif()
set_target_properties("${PROJECT_NAME}" PROPERTIES DEBUG_POSTFIX "d")
set_target_properties("${PROJECT_NAME}" PROPERTIES LINKER_LANGUAGE CXX)

target_compile_features("${PROJECT_NAME}" PUBLIC cxx_std_20)
# See https://github.com/microsoft/STL/issues/1814#issuecomment-914784312
if (MSVC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.29.30129 AND CMAKE_VERSION VERSION_GREATER 3.20.3)
target_compile_features("${PROJECT_NAME}" PUBLIC cxx_std_23)
else ()
target_compile_features("${PROJECT_NAME}" PUBLIC cxx_std_20)
endif ()


target_compile_definitions(
"${PROJECT_NAME}" PRIVATE _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING)
Expand Down

0 comments on commit 9b13bf1

Please sign in to comment.