Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:ARM
gecode
0001-Extract-soversion-from-configure.ac-and-se...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Extract-soversion-from-configure.ac-and-set-as-cmake.patch of Package gecode
From 832cb9c9c3ef0035132efc6c0aae78e0e6810d60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de> Date: Thu, 28 Apr 2022 00:52:20 +0200 Subject: [PATCH] Extract soversion from configure.ac and set as cmake target property --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8606b387..85ec94c2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -154,6 +154,8 @@ foreach (line "${EXTRA_CONFIG}" ${LINES}) set(VERSION ${CMAKE_MATCH_2}) set(PACKAGE_BUGREPORT ${CMAKE_MATCH_3}) message(STATUS "Got VERSION=${VERSION} from configure.ac") + elseif (line MATCHES "ac_gecode_soversion=(.*)\n") + set(GECODE_SOVERSION "${CMAKE_MATCH_1}") elseif (line MATCHES "ac_gecode_flatzincversion=(.*)\n") set(GECODE_FLATZINC_VERSION "${CMAKE_MATCH_1}") elseif (line MATCHES "AH_BOTTOM\\(\\[(.*)") @@ -415,6 +417,7 @@ foreach (lib support kernel search int set float add_library(gecode${lib} ${sources} ${${libupper}HDR}) target_include_directories(gecode${lib} PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ) + set_target_properties(gecode${lib} PROPERTIES SOVERSION ${GECODE_SOVERSION}) list(APPEND GECODE_INSTALL_TARGETS gecode${lib}) endif () endforeach () -- 2.36.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor