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:
N. Pattakos
2022-01-07 23:41:05 +01:00
parent 72f3e37150
commit da279c2fd9

View File

@@ -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")