[clblas] 47/75: Make installing source tree optional

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Jan 24 23:30:35 UTC 2017


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/master
in repository clblas.

commit da0fd1b706dc7977175d89f483f65fb98131d9de
Author: Hugh Perkins <hughperkins at gmail.com>
Date:   Wed Apr 20 17:50:11 2016 +0200

    Make installing source tree optional
---
 src/library/CMakeLists.txt | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/library/CMakeLists.txt b/src/library/CMakeLists.txt
index 1925b6c..f0c6111 100644
--- a/src/library/CMakeLists.txt
+++ b/src/library/CMakeLists.txt
@@ -91,6 +91,8 @@ option( PRECOMPILE_GEMM_TRANS_CN "AutoGemm: pre-compile CN transpose cases" OFF)
 option( PRECOMPILE_GEMM_TRANS_CT "AutoGemm: pre-compile CT transpose cases" OFF)
 option( PRECOMPILE_GEMM_TRANS_CC "AutoGemm: pre-compile CC transpose cases" OFF)
 
+option( INSTALL_SRC "Install source tree" OFF )
+
 set( AUTOGEMM_ARCHITECTURE "Hawaii" CACHE STRING "AutoGemm: device for kernel selection logic" )
 set_property( CACHE AUTOGEMM_ARCHITECTURE PROPERTY STRINGS "Hawaii" "Fiji" )
 
@@ -920,8 +922,11 @@ install(    DIRECTORY ${PROJECT_BINARY_DIR}/staging/
             CONFIGURATIONS Debug
             FILES_MATCHING PATTERN "*.pdb" )
 
+if(INSTALL_SRC)
 # Install a snapshot of the source as it was for this build; useful for the .pdb's
-install(    DIRECTORY ${PROJECT_SOURCE_DIR}
-            DESTINATION ${CLBLAS_RUNTIME_DESTINATION}
-            OPTIONAL
-            CONFIGURATIONS Debug )
+    install(    DIRECTORY ${PROJECT_SOURCE_DIR}
+                DESTINATION ${CLBLAS_RUNTIME_DESTINATION}
+                OPTIONAL
+                CONFIGURATIONS Debug )
+endif()
+

-- 
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