Add logging to assimp build script
This commit is contained in:
7
3rdParty/assimp/CMakeLists.txt
vendored
7
3rdParty/assimp/CMakeLists.txt
vendored
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user