[med-svn] [Git][med-team/spoa][master] Rename static lib in CMakeLists.txt

Nilesh Patra gitlab at salsa.debian.org
Sun Sep 20 14:24:23 BST 2020



Nilesh Patra pushed to branch master at Debian Med / spoa


Commits:
9a5ad00e by Nilesh Patra at 2020-09-20T18:52:38+05:30
Rename static lib in CMakeLists.txt

- - - - -


3 changed files:

- debian/control
- debian/patches/shared_and_static.patch
- debian/rules


Changes:

=====================================
debian/control
=====================================
@@ -6,7 +6,6 @@ Priority: optional
 Build-Depends: debhelper-compat (= 13),
                cmake,
                d-shlibs,
-               rename,
                libbioparser-dev (>= 2.0),
                libgtest-dev,
                zlib1g-dev,


=====================================
debian/patches/shared_and_static.patch
=====================================
@@ -2,8 +2,8 @@ Author: Andreas Tille <tille at debian.org>
 Last-Update:  Fri, 08 Jun 2018 13:20:51 +0200
 Description: Build shared and static lib
 
---- spoa.orig/CMakeLists.txt
-+++ spoa/CMakeLists.txt
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
 @@ -44,7 +44,7 @@
  endif()
  
@@ -28,7 +28,7 @@ Description: Build shared and static lib
      src/alignment_engine.cpp
      src/graph.cpp
      src/sisd_alignment_engine.cpp
-@@ -63,6 +69,11 @@
+@@ -63,11 +69,20 @@
      ${INCLUDES}
      $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/vendor/cpu_features/include>)
  
@@ -40,7 +40,16 @@ Description: Build shared and static lib
  set_target_properties(spoa
      PROPERTIES
      VERSION ${spoa_VERSION}
-@@ -99,6 +110,7 @@
+     SOVERSION ${spoa_VERSION})
+ 
++set_target_properties(spoa_static
++    PROPERTIES
++    OUTPUT_NAME "spoa")
++
+ # in dispatching case, generate different optimized versions
+ 
+ if (spoa_generate_dispatch)
+@@ -99,6 +114,7 @@
  endif()
  
  install(TARGETS spoa DESTINATION ${CMAKE_INSTALL_LIBDIR})


=====================================
debian/rules
=====================================
@@ -23,7 +23,6 @@ override_dh_auto_configure:
 
 override_dh_install:
 	dh_install
-	file-rename 's/_static\.a/.a/' `find debian -name libspoa_static.a`
 	d-shlibmove --commit \
 		    --multiarch \
 		    --devunversioned \



View it on GitLab: https://salsa.debian.org/med-team/spoa/-/commit/9a5ad00e3b4392980d4df4c3eba9580c199c131b

-- 
View it on GitLab: https://salsa.debian.org/med-team/spoa/-/commit/9a5ad00e3b4392980d4df4c3eba9580c199c131b
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200920/4eee26ba/attachment-0001.html>


More information about the debian-med-commit mailing list