Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37514527
en ru br
ALT Linux repos
S:2.6-alt1_12

Group :: System/Libraries
RPM: liblevmar

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: levmar-cmake-shared.patch
Download


diff --git a/CMakeLists.txt b/CMakeLists.txt
index d138776..d63514f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,8 +1,9 @@
 # levmar CMake file; see http://www.cmake.org and 
 #                        http://www.insightsoftwareconsortium.org/wiki/index.php/CMake_Tutorial
 
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-PROJECT(LEVMAR)
+CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
+PROJECT(LEVMAR C)
+SET(PROJECT_VERSION 2.6)
 
 SET(HAVE_LAPACK 1 CACHE BOOL "Do we have LAPACK/BLAS?")
 # the directory where the lapack/blas/f2c libraries reside
@@ -60,10 +61,12 @@ IF(HAVE_PLASMA)
 ENDIF(HAVE_PLASMA)
 
 # levmar library source files
-ADD_LIBRARY(levmar STATIC
+ADD_LIBRARY(levmar SHARED
   lm.c Axb.c misc.c lmlec.c lmbc.c lmblec.c lmbleic.c
   levmar.h misc.h compiler.h
 )
+TARGET_LINK_LIBRARIES(levmar m ${LAPACKBLAS_LIB_NAMES})
+SET_TARGET_PROPERTIES(levmar PROPERTIES VERSION ${PROJECT_VERSION})
 
 # demo program
 IF(BUILD_DEMO)
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin