More logging

This commit is contained in:
Georg Hagen
2024-10-08 10:35:57 +02:00
parent 55651aca28
commit c8e218230c

View File

@@ -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}")