mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-02 04:37:54 +08:00
fix warning LNK4099
added linker option to silence VS warning LNK4099. Again, ignoring this message is not the Right Thing to do, but in my opinion is good enough for this project and better than having a ton of warning messages hiding potentially useful ones.
This commit is contained in:
@@ -198,6 +198,9 @@ foreach(CHAPTER ${CHAPTERS})
|
||||
set(NAME "${CHAPTER}__${DEMO}")
|
||||
add_executable(${NAME} ${SOURCE})
|
||||
target_link_libraries(${NAME} ${LIBS})
|
||||
if(MSVC)
|
||||
target_link_options(${NAME} PUBLIC /ignore:4099)
|
||||
endif(MSVC)
|
||||
if(WIN32)
|
||||
set_target_properties(${NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin/${CHAPTER}")
|
||||
set_target_properties(${NAME} PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/bin/${CHAPTER}/Debug")
|
||||
|
||||
Reference in New Issue
Block a user