From 689c6311a7482ca8cf05ad007f042e9c678100a3 Mon Sep 17 00:00:00 2001 From: Hans Johnson Date: Fri, 29 Jul 2016 07:19:18 -0500 Subject: [PATCH] ENH: Add LAPACKE_WITH_TMG to default testing In order to maximize code testing options, turn LAPACKE_WITH_TMG=ON for travis builds. --- .travis.yml | 2 +- CMakeLists.txt | 4 ++-- TESTING/CMakeLists.txt | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 95e8236..b48ae54 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,7 @@ script: - cd ${BLD_DIR} # See issue #17 on github dashboard. Once resolved, use -DCBLAS=ON # - cmake -DCMAKE_INSTALL_PREFIX=${INST_DIR} -DLAPACKE=ON ${SRC_DIR} - - cmake -DBUILDNAME:STRING="travis-${TRAVIS_OS_NAME}-${BRANCH}" -DCMAKE_INSTALL_PREFIX=${INST_DIR} -DLAPACKE=ON ${SRC_DIR} + - cmake -DBUILDNAME:STRING="travis-${TRAVIS_OS_NAME}-${BRANCH}" -DCMAKE_INSTALL_PREFIX=${INST_DIR} -DLAPACKE:BOOL=ON -DLAPACKE_WITH_TMG:BOOL=ON ${SRC_DIR} - ctest -D ExperimentalStart - ctest -D ExperimentalConfigure - ctest -D ExperimentalBuild -j2 diff --git a/CMakeLists.txt b/CMakeLists.txt index ae2bd2d..5cffc9f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -278,9 +278,9 @@ option(LAPACKE "Build LAPACKE" OFF) option(LAPACKE_WITH_TMG "Build LAPACKE with tmglib routines" OFF) if (LAPACKE_WITH_TMG) set(LAPACKE ON) - if(NOT BUILD_TESTING) +endif() +if(BUILD_TESTING OR LAPACKE_WITH_TMG) #already included, avoid double inclusion add_subdirectory(TESTING/MATGEN) - endif() endif() if(LAPACKE) diff --git a/TESTING/CMakeLists.txt b/TESTING/CMakeLists.txt index 2d58737..3395005 100644 --- a/TESTING/CMakeLists.txt +++ b/TESTING/CMakeLists.txt @@ -4,7 +4,6 @@ if(MSVC_VERSION) string(REGEX REPLACE "(.*)/STACK:(.*) (.*)" "\\1/STACK:900000000000000000 \\3" CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}") endif() -add_subdirectory(MATGEN) add_subdirectory(LIN) add_subdirectory(EIG) macro(add_lapack_test output input target) -- 2.7.4