From da2b0aa5b717548897ce0d1ad6422f23674a05e3 Mon Sep 17 00:00:00 2001 From: Guido Draheim Date: Fri, 14 Sep 2018 05:37:18 +0200 Subject: [PATCH] correcting to detect the source *.so.x lib --- CMakeLists.txt | 1 + Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 416c1c1..ab9bece 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -147,6 +147,7 @@ if(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG) install(CODE "execute_process( COMMAND bash -c \"set -e cd $DESTDIR/${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR} + [ -f ${lib}${libname}${dll}.${libversion} ] || exit 0 echo -n .. Installing: `pwd` ln -sv ${lib}${libname}${dll}.${libversion} ${lib}${libname}${dll}.10 echo -n .. Installing: `pwd` diff --git a/Makefile b/Makefile index c8cdc17..2b2b60d 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ STATIC = -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON all: config build local static: conf build local +st: ; $(MAKE) distclean && $(MAKE) static it: ; $(MAKE) distclean && $(MAKE) all .PHONY: build -- 2.40.0