mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
40 lines
1.0 KiB
Plaintext
40 lines
1.0 KiB
Plaintext
From ded9c50841ff5383ab61ccbf15a49ebf4575ea7b Mon Sep 17 00:00:00 2001
|
|
From: Begasus <begasus@gmail.com>
|
|
Date: Tue, 18 Jun 2024 16:37:59 +0200
|
|
Subject: applying patch cmake-project-version.patch
|
|
|
|
https://src.fedoraproject.org/rpms/pystring/blob/rawhide/f/cmake-project-version.patch
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index fed418f..e877cd6 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -1,5 +1,5 @@
|
|
cmake_minimum_required(VERSION 3.2)
|
|
-project(pystring CXX)
|
|
+project(pystring VERSION 1.1.4 LANGUAGES CXX)
|
|
|
|
set(BUILD_SHARED_LIBS YES)
|
|
|
|
@@ -7,6 +7,10 @@ add_library(pystring
|
|
pystring.cpp
|
|
pystring.h
|
|
)
|
|
+set_target_properties(pystring PROPERTIES
|
|
+ PUBLIC_HEADER "pystring.h"
|
|
+ VERSION ${PROJECT_VERSION}
|
|
+)
|
|
|
|
add_executable (pystring_test test.cpp)
|
|
TARGET_LINK_LIBRARIES (pystring_test pystring)
|
|
@@ -18,5 +22,6 @@ include(GNUInstallDirs)
|
|
|
|
install(TARGETS pystring
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
+ PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
|
)
|
|
|
|
--
|
|
2.45.1
|
|
|