aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/liblas/fix-cmake4.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/liblas/fix-cmake4.patch')
-rw-r--r--vcpkg/ports/liblas/fix-cmake4.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/vcpkg/ports/liblas/fix-cmake4.patch b/vcpkg/ports/liblas/fix-cmake4.patch
new file mode 100644
index 0000000..0ee3aa9
--- /dev/null
+++ b/vcpkg/ports/liblas/fix-cmake4.patch
@@ -0,0 +1,14 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 5af9ac21a5..5cc6f88939 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -75,9 +75,6 @@ mark_as_advanced(CMAKE_VERBOSE_MAKEFILE)
+
+ # Path to additional CMake modules
+ set(CMAKE_MODULE_PATH "${libLAS_SOURCE_DIR}/cmake/modules" ${CMAKE_MODULE_PATH})
+-if (CMAKE_MAJOR_VERSION GREATER 2)
+- cmake_policy(SET CMP0042 OLD)
+-endif()
+
+ if (CMAKE_SYSTEM_NAME MATCHES "Linux")
+ set(CMAKE_SKIP_RPATH ON)