From 834c221936d9c460b44e3a65b6fedfb3193f491b Mon Sep 17 00:00:00 2001
From: Samuel Martin <s.martin49@gmail.com>
Date: Sat, 11 Jan 2014 21:33:12 +0100
Subject: [PATCH 2/6] cmake: make test build sensitive to BUILD_TESTING
This patch prevent from wasting time building the tests if it's our
The test build takes a significant amount of time, and the binaries
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
BLAS/TESTING/CMakeLists.txt | 3 +++
CMakeLists.txt | 9 ++++++---
TESTING/CMakeLists.txt | 4 ++++
3 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/BLAS/TESTING/CMakeLists.txt b/BLAS/TESTING/CMakeLists.txt
index ec2c587..e7dc0b7 100644
--- a/BLAS/TESTING/CMakeLists.txt
+++ b/BLAS/TESTING/CMakeLists.txt
#######################################################################
macro(add_blas_test name src)
get_filename_component(baseNAME ${src} NAME_WE)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 320ccc6..0a362c0 100644
cmake_minimum_required(VERSION 2.6)
set(SECOND_SRC ${CLAPACK_SOURCE_DIR}/INSTALL/second.c)
set(DSECOND_SRC ${CLAPACK_SOURCE_DIR}/INSTALL/dsecnd.c)
option(USE_BLAS_WRAP "pre-pend f2c_ to each function in blas" OFF)
# _zrotg_ seems to be missing in the wrap header
@@ -21,7 +22,9 @@ include_directories(${CLAPACK_SOURCE_DIR}/INCLUDE)
add_subdirectory(F2CLIBS)
-add_subdirectory(TESTING)
+ add_subdirectory(TESTING)
set(CLAPACK_VERSION 3.2.1)