Sfoglia il codice sorgente

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

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

Kim Kulling 11 anni fa
parent
commit
3cc4ece11e
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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@")