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
___
SirAnn,
Instead of add_definitions, you can simply append the desired flags to the
compiler flags for the specific configuration. For example:
set(CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE}
-D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE)
In the case of _SCL_SECURE_NO_WARNINGS