From 3cc4ece11e5338766292750a05de4c9f5eb1c754 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Wed, 29 Jan 2014 21:19:00 +0100 Subject: [PATCH] bugfix: - https://github.com/assimp/assimp/issues/94: fix assimp-config.cmake.in file. Signed-off-by: Kim Kulling --- assimp-config.cmake.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assimp-config.cmake.in b/assimp-config.cmake.in index 75d233a0e..e8b505cef 100644 --- a/assimp-config.cmake.in +++ b/assimp-config.cmake.in @@ -40,6 +40,9 @@ set( ASSIMP_LINK_FLAGS "" ) set( ASSIMP_LIBRARY_DIRS "${ASSIMP_ROOT_DIR}/@ASSIMP_LIB_INSTALL_DIR@") set( ASSIMP_INCLUDE_DIRS "${ASSIMP_ROOT_DIR}/@ASSIMP_INCLUDE_INSTALL_DIR@") set( ASSIMP_LIBRARIES assimp${ASSIMP_LIBRARY_SUFFIX}) +if (CMAKE_BUILD_TYPE EQUAL "DEBUG") + set( ASSIMP_LIBRARIES ${ASSIMP_LIBRARIES}D) +endif (CMAKE_BUILD_TYPE EQUAL "DEBUG") # the boost version assimp was compiled with set( ASSIMP_Boost_VERSION "@Boost_MAJOR_VERSION@.@Boost_MINOR_VERSION@")