Parcourir la source

bugfix:
- https://github.com/assimp/assimp/issues/94: fix assimp-config.cmake.in file.

Signed-off-by: Kim Kulling <[email protected]>

Kim Kulling il y a 11 ans
Parent
commit
3cc4ece11e
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      assimp-config.cmake.in

+ 3 - 0
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@")