aboutsummaryrefslogtreecommitdiffstats
path: root/community/ptex/0001-cmake-fixes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/ptex/0001-cmake-fixes.patch')
-rw-r--r--community/ptex/0001-cmake-fixes.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/ptex/0001-cmake-fixes.patch b/community/ptex/0001-cmake-fixes.patch
new file mode 100644
index 00000000000..da9c82bee1d
--- /dev/null
+++ b/community/ptex/0001-cmake-fixes.patch
@@ -0,0 +1,39 @@
+From 47f1040132c45578d14ba7a7dc40f82cb0a53185 Mon Sep 17 00:00:00 2001
+From: Leon Marz <main@lmarz.org>
+Date: Fri, 26 Nov 2021 14:24:39 +0100
+Subject: [PATCH] cmake fixes
+
+---
+ src/build/CMakeLists.txt | 2 +-
+ src/ptex/CMakeLists.txt | 3 ++-
+ 2 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/src/build/CMakeLists.txt b/src/build/CMakeLists.txt
+index e061de6..cae7874 100644
+--- a/src/build/CMakeLists.txt
++++ b/src/build/CMakeLists.txt
+@@ -1,6 +1,6 @@
+ include(CMakePackageConfigHelpers)
+
+-set(CMAKE_DIR "share/cmake/Ptex")
++set(CMAKE_DIR "lib/cmake/Ptex")
+
+ write_basic_package_version_file("ptex-config-version.cmake"
+ VERSION "${PTEX_MAJOR_VERSION}.${PTEX_MINOR_VERSION}"
+diff --git a/src/ptex/CMakeLists.txt b/src/ptex/CMakeLists.txt
+index e2e1bfd..04a8be7 100644
+--- a/src/ptex/CMakeLists.txt
++++ b/src/ptex/CMakeLists.txt
+@@ -31,7 +31,8 @@ if(PTEX_BUILD_SHARED_LIBS)
+ add_library(Ptex_dynamic SHARED ${SRCS})
+ set_target_properties(Ptex_dynamic PROPERTIES
+ OUTPUT_NAME Ptex
+- SOVERSION "${PTEX_MAJOR_VERSION}.${PTEX_MINOR_VERSION}")
++ VERSION "${PTEX_MAJOR_VERSION}.${PTEX_MINOR_VERSION}"
++ SOVERSION "${PTEX_MAJOR_VERSION}")
+ target_include_directories(Ptex_dynamic
+ PUBLIC
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
+--
+2.34.1
+