diff --git a/.travis.yml b/.travis.yml index 95e823676..b48ae5441 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 b542f1af3..47c8a0a8d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -280,9 +280,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 cf710ee7a..3cd6c4a5e 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)