[lastools] Fix '*.cmake' file name (#29833)

* update lastools

* update version

---------

Co-authored-by: Monica <v-liumonica@microsoft.com>
Co-authored-by: Javier Matos Denizac <javier.matosd@gmail.com>
This commit is contained in:
MonicaLiu 2023-03-21 03:16:03 +08:00 committed by GitHub
parent 0afa78153b
commit e249dfb528
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 14 deletions

View File

@ -1,15 +1,15 @@
diff --git a/LASlib/src/CMakeLists.txt b/LASlib/src/CMakeLists.txt diff --git a/LASlib/src/CMakeLists.txt b/LASlib/src/CMakeLists.txt
index 1b170bf..b5c40cb 100644 index 1b170bf..408628c 100644
--- a/LASlib/src/CMakeLists.txt --- a/LASlib/src/CMakeLists.txt
+++ b/LASlib/src/CMakeLists.txt +++ b/LASlib/src/CMakeLists.txt
@@ -99,17 +99,8 @@ if(MSVC) @@ -99,17 +99,9 @@ if(MSVC)
) )
endif() endif()
+install(TARGETS LASlib EXPORT LASlib-targets +install(TARGETS LASlib EXPORT laslib-targets
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(FILES ${LAS_INCLUDES} DESTINATION include/LASlib) install(FILES ${LAS_INCLUDES} DESTINATION include/LASlib)
-
-if (MSVC) -if (MSVC)
- foreach( OUTPUTCONFIG ${CMAKE_CONFIGURATION_TYPES} ) - foreach( OUTPUTCONFIG ${CMAKE_CONFIGURATION_TYPES} )
- install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../lib/${OUTPUTCONFIG} DESTINATION lib/LASlib) - install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../lib/${OUTPUTCONFIG} DESTINATION lib/LASlib)
@ -22,6 +22,5 @@ index 1b170bf..b5c40cb 100644
- install(EXPORT laslib-targets DESTINATION lib/cmake/LASlib) - install(EXPORT laslib-targets DESTINATION lib/cmake/LASlib)
- install(FILES ${CMAKE_SOURCE_DIR}/LASlib/src/laslib-config.cmake DESTINATION lib/cmake/LASlib) - install(FILES ${CMAKE_SOURCE_DIR}/LASlib/src/laslib-config.cmake DESTINATION lib/cmake/LASlib)
-endif(MSVC) -endif(MSVC)
+install(EXPORT LASlib-targets DESTINATION share/lastools/LASlib) +install(EXPORT laslib-targets DESTINATION share/lastools/LASlib)
+install(FILES ${CMAKE_SOURCE_DIR}/LASlib/src/laslib-config.cmake DESTINATION share/lastools/LASlib) +install(FILES ${CMAKE_SOURCE_DIR}/LASlib/src/laslib-config.cmake DESTINATION share/lastools/LASlib)
\ No newline at end of file

View File

@ -16,20 +16,18 @@ vcpkg_from_github(
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
) )
vcpkg_cmake_install() vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME LASlib CONFIG_PATH "share/lastools/LASlib") vcpkg_cmake_config_fixup(PACKAGE_NAME LASlib CONFIG_PATH share/lastools/LASlib)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
if(VCPKG_LIBRARY_LINKAGE STREQUAL static) if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif() endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
# Handle copyright # Handle copyright
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)

View File

@ -1,6 +1,7 @@
{ {
"name": "lastools", "name": "lastools",
"version": "2.0.2+20230206", "version": "2.0.2+20230206",
"port-version": 1,
"description": "LAStools: award-winning software for efficient LiDAR processing (with LASzip)", "description": "LAStools: award-winning software for efficient LiDAR processing (with LASzip)",
"homepage": "https://github.com/LAStools/LAStools", "homepage": "https://github.com/LAStools/LAStools",
"supports": "!uwp", "supports": "!uwp",

View File

@ -3662,7 +3662,7 @@
}, },
"lastools": { "lastools": {
"baseline": "2.0.2+20230206", "baseline": "2.0.2+20230206",
"port-version": 0 "port-version": 1
}, },
"laszip": { "laszip": {
"baseline": "3.4.3", "baseline": "3.4.3",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "c8eec220c3958c88af0050876e69d8b7f5d3d945",
"version": "2.0.2+20230206",
"port-version": 1
},
{ {
"git-tree": "ba9574b3fd9117129064d6494b93c3587f2dcf3c", "git-tree": "ba9574b3fd9117129064d6494b93c3587f2dcf3c",
"version": "2.0.2+20230206", "version": "2.0.2+20230206",