mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-30 20:13:22 +08:00
Updated MSVC target compile options to C++17
This commit is contained in:
@@ -212,7 +212,7 @@ function(create_project_from_sources chapter demo)
|
|||||||
add_executable(${NAME} ${SOURCE})
|
add_executable(${NAME} ${SOURCE})
|
||||||
target_link_libraries(${NAME} ${LIBS})
|
target_link_libraries(${NAME} ${LIBS})
|
||||||
if(MSVC)
|
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)
|
target_link_options(${NAME} PUBLIC /ignore:4099)
|
||||||
endif(MSVC)
|
endif(MSVC)
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
|||||||
Reference in New Issue
Block a user