diff --git a/3rdParty/assimp/CMakeLists.txt b/3rdParty/assimp/CMakeLists.txt index e0b201b..6e5aa12 100644 --- a/3rdParty/assimp/CMakeLists.txt +++ b/3rdParty/assimp/CMakeLists.txt @@ -2,6 +2,7 @@ include(FetchContent) unset(assimp_FOUND) find_package(assimp QUIET) +message("assimp_FOUND: ${assimp_FOUND}; ASSIMP_FOUND: ${ASSIMP_FOUND}") if (assimp_FOUND) message("Using system assimp") elseif (USE_ASSIMP) @@ -34,9 +35,12 @@ endif () function(LinkAssimp TARGET) if (NOT assimp_BUILT) find_package(assimp QUIET) + message("assimp_FOUND: ${assimp_FOUND}; ASSIMP_FOUND: ${ASSIMP_FOUND}") if (assimp_FOUND) set(ASSIMP_LIB_NAME ${ASSIMP_LIBRARIES}) endif () + else () + set(ASSIMP_LIB_NAME "assimp") endif () if (assimp_FOUND OR assimp_BUILT) message("Linking assimp: ${ASSIMP_LIB_NAME}")