Open Margen67 opened 4 years ago
Try this: https://stackoverflow.com/a/47436428
I tried, but I'm pretty sure I'm doing it wrong: https://github.com/Margen67/OpenAG/commit/73bc234ba1fed0cf3efe75a124295d20cbdc3457
Yes, you're doing it in the wrong place. You should do it in the main CMakeLists.txt
after the OpenAG
target is defined (with add_library
IIRC).
You need to take the line
set_target_properties(client PROPERTIES VS_GLOBAL_XPDeprecationWarning "False")
and put it somewhere after the line
add_library(client SHARED ${SOURCE_FILES})
It didn't fail, but didn't do much either: https://github.com/Margen67/OpenAG/commit/60656d24153a73dbfc5addd86c319cb7c262aad4
Maybe it should be false
You should check which vcxproj ends up being generated and if the property is present there
https://stackoverflow.com/a/53965471 Not sure how to apply this to cmake..
https://ci.appveyor.com/project/YaLTeR/openag/builds/29067902/job/u7cpcqh8xs5rmmue#L46 This will help bring down the warning count.