diff --git a/3rdParty/assimp/CMakeLists.txt b/3rdParty/assimp/CMakeLists.txt index 1257178..e0b201b 100644 --- a/3rdParty/assimp/CMakeLists.txt +++ b/3rdParty/assimp/CMakeLists.txt @@ -5,6 +5,7 @@ find_package(assimp QUIET) if (assimp_FOUND) message("Using system assimp") elseif (USE_ASSIMP) + message("Building assimp from sources") if(NOT DEFINED ASSIMP_REPO) set(ASSIMP_REPO https://github.com/assimp/assimp.git) endif () @@ -33,8 +34,12 @@ endif () function(LinkAssimp TARGET) if (NOT assimp_BUILT) find_package(assimp QUIET) + if (assimp_FOUND) + set(ASSIMP_LIB_NAME ${ASSIMP_LIBRARIES}) + endif () endif () if (assimp_FOUND OR assimp_BUILT) - target_link_libraries(${TARGET} PUBLIC assimp) + message("Linking assimp: ${ASSIMP_LIB_NAME}") + target_link_libraries(${TARGET} PUBLIC ${ASSIMP_LIB_NAME}) endif () endfunction()