Bläddra i källkod

fix vs2017-compiler-warning c4002: tr1 is deprecated.

Kim Kulling 7 år sedan
förälder
incheckning
18e9aa13d6
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3 1
      test/CMakeLists.txt

+ 3 - 1
test/CMakeLists.txt

@@ -45,7 +45,9 @@ INCLUDE_DIRECTORIES(
     ${Assimp_SOURCE_DIR}/include
     ${Assimp_SOURCE_DIR}/include
     ${Assimp_SOURCE_DIR}/code
     ${Assimp_SOURCE_DIR}/code
 )
 )
-
+if (MSVC)
+  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING")
+endif()
 # Add the temporary output directories to the library path to make sure the
 # Add the temporary output directories to the library path to make sure the
 # Assimp library can be found, even if it is not installed system-wide yet.
 # Assimp library can be found, even if it is not installed system-wide yet.
 LINK_DIRECTORIES( ${Assimp_BINARY_DIR} ${AssetImporter_BINARY_DIR}/lib )
 LINK_DIRECTORIES( ${Assimp_BINARY_DIR} ${AssetImporter_BINARY_DIR}/lib )