Disable SDLChecks for legacy code?

Sep 23, 2014 at 11:19 AM
Trying to leverage this version of CMake to build Windows Phone 8.1 app which leverages a piece of legacy code that fails to compile due to C4703. I do understand that the best option is to change this code but this is unfortunately not possible currently.

Instead I'd like to disable the SDLChecks property for this specific library, but I can't find out how to disable it since it appears to be enabled by default.

Please advise.
Sep 23, 2014 at 3:58 PM
Can you just add /wd4703 to the compiler flags? Our code base has scores of warnings disabled due to poor quality external libraries. I'm certain we disabled that one. Remember you can do it on a per-source-file basis and you may need it in both c_flags and cxx_flags.
Sep 25, 2014 at 9:26 AM
Thanks Ted! That works just fine!
Sep 25, 2014 at 10:26 AM
I'm pleased I could help. Though I'm never truly pleased that warnings are ignored. :)