aports/community/ptex/0001-cmake-fixes.patch
2021-12-19 10:08:42 +00:00

40 lines
1.3 KiB
Diff

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