Verified Commit b5e447c9 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

cmake: fix check

parent b377becd
......@@ -28,17 +28,28 @@ if(WIN32)
find_path(ASSIMP_LIBRARY_DIR
NAMES
assimp-${ASSIMP_MSVC_VERSION}-mt.lib
assimp-${ASSIMP_MSVC_VERSION}-mtd.lib
HINTS
${ASSIMP_ROOT_DIR}/lib${ASSIMP_ARCHITECTURE}
)
find_library(ASSIMP_LIBRARY_RELEASE assimp-${ASSIMP_MSVC_VERSION}-mt.lib PATHS ${ASSIMP_LIBRARY_DIR})
find_library(ASSIMP_LIBRARY_DEBUG assimp-${ASSIMP_MSVC_VERSION}-mtd.lib PATHS ${ASSIMP_LIBRARY_DIR})
IF(NOT ASSIMP_LIBRARY_RELEASE AND NOT ASSIMP_LIBRARY_DEBUG)
continue()
ENDIF()
set(ASSIMP_LIBRARY
optimized ${ASSIMP_LIBRARY_RELEASE}
debug ${ASSIMP_LIBRARY_DEBUG}
)
IF(ASSIMP_LIBRARY_DEBUG)
set(ASSIMP_LIBRARY
optimized ${ASSIMP_LIBRARY_RELEASE}
debug ${ASSIMP_LIBRARY_DEBUG}
)
ELSE()
set(ASSIMP_LIBRARY
optimized ${ASSIMP_LIBRARY_RELEASE}
)
ENDIF()
set(ASSIMP_LIBRARIES ${ASSIMP_LIBRARY_RELEASE} ${ASSIMP_LIBRARY_DEBUG})
......@@ -50,7 +61,7 @@ if(WIN32)
VERBATIM)
ENDFUNCTION(ASSIMP_COPY_BINARIES)
SET(assimp_LIBRARIES ${ASSIMP_LIBRARY_RELEASE})
SET(assimp_LIBRARIES ${ASSIMP_LIBRARY})
endforeach()
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment