pystring, bump version (#10608)

This commit is contained in:
Schrijvers Luc
2024-06-18 17:08:43 +02:00
committed by GitHub
parent 90e44ad9f6
commit f8951b7064
3 changed files with 47 additions and 94 deletions

View File

@@ -0,0 +1,39 @@
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