[clblas] 105/125: let the user build the libraries statically
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Fri May 29 06:57:27 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository clblas.
commit d43fd1053de9ff8448dbce78f2c451b8bd093d10
Author: Gaëtan Lehmann <gaetan.lehmann at gmail.com>
Date: Tue Mar 3 07:06:00 2015 +0100
let the user build the libraries statically
this is controlled with the standard BUILD_SHARED_LIBS that changes the behavior
of add_library() when no type explicitly is used.
---
src/CMakeLists.txt | 1 +
src/library/CMakeLists.txt | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 6043c01..0bda736 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -23,6 +23,7 @@ option( BUILD_PERFORMANCE "Copy the performance scripts that can measure and gra
option( BUILD_SAMPLE "Build the sample programs" OFF )
option( BUILD_CLIENT "Build a command line clBLAS client program with a variety of configurable parameters (dependency on Boost)" OFF )
option( BUILD_KTEST "A command line tool for testing single clBLAS kernel" ON )
+option( BUILD_SHARED_LIBS "Build shared libraries" ON )
# By default test-correctness is linked and tested against ACML library.
# However, test-correctness can instead use NETLIB as a reference library
diff --git a/src/library/CMakeLists.txt b/src/library/CMakeLists.txt
index 8362281..b445cc8 100644
--- a/src/library/CMakeLists.txt
+++ b/src/library/CMakeLists.txt
@@ -307,7 +307,7 @@ if( CMAKE_COMPILER_IS_GNUCC )
DESTINATION lib${SUFFIX_LIB}/pkgconfig )
endif( )
-add_library(clBLAS SHARED ${CLBLAS_SOURCES} ${GLOBAL_HEADERS} ${SRC_BLAS_HEADERS} ${SRC_BLAS_GENS_HEADERS})
+add_library(clBLAS ${CLBLAS_SOURCES} ${GLOBAL_HEADERS} ${SRC_BLAS_HEADERS} ${SRC_BLAS_GENS_HEADERS})
add_dependencies(clBLAS GENERATE_CLT)
set_target_properties(clBLAS PROPERTIES VERSION ${clBLAS_VERSION})
set_target_properties(clBLAS PROPERTIES SOVERSION ${clBLAS_SOVERSION})
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clblas.git
More information about the debian-science-commits
mailing list