Hi all,<br>
<br>
I have to agree with Amitha because<br>
IMHO the activation/deactivation of these warnings<br>
should be left for the developer to decide explicitly,<br>
and this can be handled easily with the addition of a line like<br>
<br>

ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)<br>
in the CMakeList.txt file.<br>
<br>
or by<br>
 #  pragma warning ( disable : 4996 ) /* depreciated functions */<br>

in a header file as Goodwin suggested.<br>
<br>
There is no reason to integrate this kind of functionality in CMake,<br>
anyone who gets 1981638939 warnings when he compiles his<br>
project will either figure this out on his own or google around and <br>
will certainly come across our conversation ;-)<br>
<br>
As far as VTK is concerned, I don't think its developers<br>
thought that standard C function were a security<br>
risk (it seems thought that MS does) that is why <br>
the inclusion of the above CMake line<br>
in VTK's CMakeList.txt is, in my opinion,<br>
all that is necessary.<br>
<br>
<br>
best regards<br>
yianis nikolaou<br>
<br>