mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[assimp] Fix install assimp when passing --head (#6887)
Instead of using hardcoded `assimp-4.1` folder, check directories with pattern `assimp-*` and select the first one. This fixes `vcpkg install vcpkg --head`, since the latest version creates a folder named `assimp-5.0` instead.
This commit is contained in:
parent
7b41dc688a
commit
b03f62e0eb
@ -32,7 +32,9 @@ vcpkg_configure_cmake(
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/assimp-4.1")
|
||||
FILE(GLOB lib_cmake_directories RELATIVE "${CURRENT_PACKAGES_DIR}" "${CURRENT_PACKAGES_DIR}/lib/cmake/assimp-*")
|
||||
list(GET lib_cmake_directories 0 lib_cmake_directory)
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH "${lib_cmake_directory}")
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user