Browse Source

Remove compilation warning for CTKCoreCppTests.cpp

The warning message only appears on Visual Studio:
.\CTKCoreCppTEsts.cpp(194) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
Julien Finet 14 years ago
parent
commit
9b00a9c636
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Libs/Core/Testing/Cpp/CMakeLists.txt

+ 4 - 0
Libs/Core/Testing/Cpp/CMakeLists.txt

@@ -92,6 +92,10 @@ IF(HAVE_BFD)
   ADD_EXECUTABLE(ctkBinaryFileDescriptorTestHelper ctkBinaryFileDescriptorTestHelper.cpp)
 ENDIF()
 
+IF(WIN32)
+  ADD_DEFINITIONS( /D _CRT_SECURE_NO_WARNINGS)
+ENDIF()
+
 #
 # Test executable
 #