Skip to content

Commit

Permalink
[liblas] fix cmake consumption (#29259)
Browse files Browse the repository at this point in the history
* [liblas] fix consumption

* v db
  • Loading branch information
Neumann-A committed Feb 1, 2023
1 parent acb4db3 commit 6810f35
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ports/liblas/fix-cmake-config.patch
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ index 175e997..8a55804 100644

+include(CMakeFindDependencyMacro)
+find_dependency(GeoTIFF CONFIG)
include ("${_DIR}/liblas-depends.cmake")
-include ("${_DIR}/liblas-depends.cmake")
+include ("${CMAKE_CURRENT_LIST_DIR}/liblas-depends.cmake")
if(WIN32)
set (libLAS_LIBRARIES liblas liblas_c)
4 changes: 4 additions & 0 deletions ports/liblas/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ else()
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/libLAS)
endif()

vcpkg_replace_string ("${CURRENT_PACKAGES_DIR}/share/liblas/liblas-config.cmake" "_DIR}/.." "_DIR}/../..")
vcpkg_replace_string ("${CURRENT_PACKAGES_DIR}/share/liblas/liblas-config.cmake" "/lib" "$<$<CONFIG:DEBUG>:/debug>/lib")
vcpkg_replace_string ("${CURRENT_PACKAGES_DIR}/share/liblas/liblas-config.cmake" "/bin" "/tools/${PORT}")

file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/share"
Expand Down
2 changes: 1 addition & 1 deletion ports/liblas/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "liblas",
"version": "1.8.1",
"port-version": 10,
"port-version": 11,
"description": "A C/C++ library for reading and writing the very common LAS LiDAR format.",
"license": null,
"supports": "!arm & !staticcrt",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3986,7 +3986,7 @@
},
"liblas": {
"baseline": "1.8.1",
"port-version": 10
"port-version": 11
},
"liblbfgs": {
"baseline": "1.10",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/liblas.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "aff83be201bcfe7db23231cf8ab667541294c4a6",
"version": "1.8.1",
"port-version": 11
},
{
"git-tree": "59d85ba2350ba688af5aad5a538382fd7b2963e3",
"version": "1.8.1",
Expand Down

0 comments on commit 6810f35

Please sign in to comment.