Skip to content

Commit

Permalink
[lastools] Fix '*.cmake' file name (#29833)
Browse files Browse the repository at this point in the history
* update lastools

* update version

---------

Co-authored-by: Monica <v-liumonica@microsoft.com>
Co-authored-by: Javier Matos Denizac <javier.matosd@gmail.com>
  • Loading branch information
3 people committed Mar 20, 2023
1 parent 0afa781 commit e249dfb
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
11 changes: 5 additions & 6 deletions ports/lastools/fix_install_paths_lastools.patch
@@ -1,15 +1,15 @@
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
+++ b/LASlib/src/CMakeLists.txt
@@ -99,17 +99,8 @@ if(MSVC)
@@ -99,17 +99,9 @@ if(MSVC)
)
endif()

+install(TARGETS LASlib EXPORT LASlib-targets
+install(TARGETS LASlib EXPORT laslib-targets
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(FILES ${LAS_INCLUDES} DESTINATION include/LASlib)
-
-if (MSVC)
- foreach( OUTPUTCONFIG ${CMAKE_CONFIGURATION_TYPES} )
- install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../lib/${OUTPUTCONFIG} DESTINATION lib/LASlib)
Expand All @@ -22,6 +22,5 @@ index 1b170bf..b5c40cb 100644
- install(EXPORT laslib-targets DESTINATION lib/cmake/LASlib)
- install(FILES ${CMAKE_SOURCE_DIR}/LASlib/src/laslib-config.cmake DESTINATION lib/cmake/LASlib)
-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)
\ No newline at end of file
12 changes: 5 additions & 7 deletions ports/lastools/portfile.cmake
Expand Up @@ -16,20 +16,18 @@ vcpkg_from_github(
)

vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
SOURCE_PATH "${SOURCE_PATH}"
)

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)
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()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

# Handle copyright
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
1 change: 1 addition & 0 deletions ports/lastools/vcpkg.json
@@ -1,6 +1,7 @@
{
"name": "lastools",
"version": "2.0.2+20230206",
"port-version": 1,
"description": "LAStools: award-winning software for efficient LiDAR processing (with LASzip)",
"homepage": "https://github.com/LAStools/LAStools",
"supports": "!uwp",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Expand Up @@ -3662,7 +3662,7 @@
},
"lastools": {
"baseline": "2.0.2+20230206",
"port-version": 0
"port-version": 1
},
"laszip": {
"baseline": "3.4.3",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/lastools.json
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c8eec220c3958c88af0050876e69d8b7f5d3d945",
"version": "2.0.2+20230206",
"port-version": 1
},
{
"git-tree": "ba9574b3fd9117129064d6494b93c3587f2dcf3c",
"version": "2.0.2+20230206",
Expand Down

0 comments on commit e249dfb

Please sign in to comment.