[CMake] How to decide between Release and Debug at ADD_DEFINITIONS for MSVC?

Sören Freudiger muffmolch at gmx.de
Wed Jul 30 11:24:54 EDT 2008


Hello
I want to add "_SCL_SECURE_NO_WARNINGS" and "_CRT_SECURE_NO_DEPRECATE" at
the MSVC Release configuration only.
How can I do that?

I found the open feature request:
  http://www.vtk.org/Bug/view.php?id=6269

Is there any workaround?

  -SirAnn





More information about the CMake mailing list