aboutsummaryrefslogtreecommitdiff
path: root/ports/liblas/fix-BuildError.patch
diff options
context:
space:
mode:
authorCurtis J Bezault <curtbezault@gmail.com>2019-07-24 14:26:34 -0700
committerGitHub <noreply@github.com>2019-07-24 14:26:34 -0700
commitd60047280dcdafabc45f456cd7f86b836387e0f9 (patch)
treefb5e98d1e16548635a96a5c49e7981db06a9c6f8 /ports/liblas/fix-BuildError.patch
parent0c7669d009548616aeb754276deea974ba7a53c3 (diff)
parentaeecc01fbd9b888a186a407532af679eacdaab2c (diff)
downloadvcpkg-d60047280dcdafabc45f456cd7f86b836387e0f9.tar.gz
vcpkg-d60047280dcdafabc45f456cd7f86b836387e0f9.zip
Merge branch 'master' into external_file_abi
Diffstat (limited to 'ports/liblas/fix-BuildError.patch')
-rw-r--r--ports/liblas/fix-BuildError.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/ports/liblas/fix-BuildError.patch b/ports/liblas/fix-BuildError.patch
new file mode 100644
index 000000000..277e81ef7
--- /dev/null
+++ b/ports/liblas/fix-BuildError.patch
@@ -0,0 +1,47 @@
+diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt
+index beb83e2..6f216bd 100644
+--- a/apps/CMakeLists.txt
++++ b/apps/CMakeLists.txt
+@@ -155,7 +152,7 @@ endif()
+ # Targets installation
+
+ install(TARGETS ${LIBLAS_UTILITIES}
+- RUNTIME DESTINATION ${LIBLAS_BIN_DIR}
++ RUNTIME DESTINATION tools
+ LIBRARY DESTINATION ${LIBLAS_LIB_DIR}
+ ARCHIVE DESTINATION ${LIBLAS_LIB_DIR})
+
+diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
+index c7f583d..ca9e602 100644
+--- a/cmake/CMakeLists.txt
++++ b/cmake/CMakeLists.txt
+@@ -5,13 +5,8 @@
+ # Set where cmake will install liblas-config.cmake. It's installed in
+ # ${CMAKE_INSTALL_PREFIX}/${INSTALL_CMAKE_DIR} and ${PROJECT_ROOT_DIR}
+ # is the relative path to the root from there.
+-if (NOT WIN32)
+- set(INSTALL_CMAKE_DIR "share/cmake/${PROJECT_NAME}")
+- set (PROJECT_ROOT_DIR "../../..")
+-else ()
+- set(INSTALL_CMAKE_DIR "cmake")
+- set (PROJECT_ROOT_DIR "..")
+-endif ()
++set(INSTALL_CMAKE_DIR "share/cmake/${PROJECT_NAME}")
++set (PROJECT_ROOT_DIR "../../..")
+
+ # Now create the liblas-config files using the .in templates
+ configure_file (liblas-config.cmake.in
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index e35de06..f7c25d2 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -226,7 +226,8 @@ target_link_libraries(${LIBLAS_LIB_NAME}
+ ${GEOTIFF_LIBRARY}
+ ${GDAL_LIBRARY}
+ ${LASZIP_LIBRARY}
+- ${Boost_LIBRARIES})
++ ${Boost_LIBRARIES}
++ proj)
+
+ target_link_libraries(${LIBLAS_C_LIB_NAME}
+ ${LIBLAS_LIB_NAME} )