I am aware of how to suppress compile warnings with CMake by doing (suppose I want to disable compile warning C4819
):
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/wd4819")
So how to suppress link warnings with CMake (say LNK4099
)?
Try this:
set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "/ignore:4099")
It worked perfectly for me with Visual Studio 2015.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With