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