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

pull/1832/head
Kim Kulling 2018-03-13 19:15:56 +01:00
parent f857d72dbb
commit 18e9aa13d6
1 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,9 @@ INCLUDE_DIRECTORIES(
${Assimp_SOURCE_DIR}/include
${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
# Assimp library can be found, even if it is not installed system-wide yet.
LINK_DIRECTORIES( ${Assimp_BINARY_DIR} ${AssetImporter_BINARY_DIR}/lib )