Updated MSVC target compile options to C++17

This commit is contained in:
arby
2022-02-18 16:56:43 +01:00
parent 938e57f071
commit 3ba3abdae6

View File

@@ -212,7 +212,7 @@ function(create_project_from_sources chapter demo)
add_executable(${NAME} ${SOURCE})
target_link_libraries(${NAME} ${LIBS})
if(MSVC)
target_compile_options(${NAME} PRIVATE /std:c++latest /MP)
target_compile_options(${NAME} PRIVATE /std:c++17 /MP)
target_link_options(${NAME} PUBLIC /ignore:4099)
endif(MSVC)
if(WIN32)