Skip to content

Commit

Permalink
Merge pull request #378 from xEnVrE/impl/fix_assimp
Browse files Browse the repository at this point in the history
Fix Findassimp.cmake
  • Loading branch information
drdanz authored Mar 30, 2021
2 parents 214d715 + 01231a1 commit b53c780
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions find-modules/Findassimp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ if(assimp_FOUND)
"${assimp_LOCATION_RELEASE}")
endif()
endif()
if(NOT TARGET assimp::assimp)
add_library(assimp::assimp UNKNOWN IMPORTED)
set_target_properties(assimp::assimp PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${ASSIMP_INCLUDE_DIRS}")
find_library(_ycm_ASSIMP_LIBRARY NAMES assimp libassimp PATHS ${ASSIMP_LIBRARY_DIRS})
mark_as_advanced(_ycm_ASSIMP_LIBRARY)
set_property(TARGET assimp::assimp APPEND PROPERTY
IMPORTED_LOCATION "${_ycm_ASSIMP_LIBRARY}")
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(assimp CONFIG_MODE)
return()
Expand Down

0 comments on commit b53c780

Please sign in to comment.