Add logging to assimp build script

This commit is contained in:
Georg Hagen
2024-10-08 10:25:43 +02:00
parent ec72302d50
commit 55651aca28

View File

@@ -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()