Browse Source

Merge branch 'remove-warnings-in-tests'

* remove-warnings-in-tests:
  Remove compilation warning for CTKCoreCppTests.cpp
Julien Finet 14 years ago
parent
commit
720867050c
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)
   ADD_EXECUTABLE(ctkBinaryFileDescriptorTestHelper ctkBinaryFileDescriptorTestHelper.cpp)
 ENDIF()
 ENDIF()
 
 
+IF(WIN32)
+  ADD_DEFINITIONS( /D _CRT_SECURE_NO_WARNINGS)
+ENDIF()
+
 #
 #
 # Test executable
 # Test executable
 #
 #