diff --git a/cmake_aux/Modules/ARMA_FindARPACK.cmake b/cmake_aux/Modules/ARMA_FindARPACK.cmake index 1a709ad..3029c25 100644 --- a/cmake_aux/Modules/ARMA_FindARPACK.cmake +++ b/cmake_aux/Modules/ARMA_FindARPACK.cmake @@ -4,6 +4,10 @@ # ARPACK_FOUND - system has ARPACK # ARPACK_LIBRARY - Link this to use ARPACK +if(CMAKE_DISABLE_FIND_PACKAGE_ARPACK) + set(ARPACK_FOUND NO) + return() +endif() find_library(ARPACK_LIBRARY NAMES arpack diff --git a/cmake_aux/Modules/ARMA_FindATLAS.cmake b/cmake_aux/Modules/ARMA_FindATLAS.cmake index 6ad1eee..6dd372e 100644 --- a/cmake_aux/Modules/ARMA_FindATLAS.cmake +++ b/cmake_aux/Modules/ARMA_FindATLAS.cmake @@ -1,3 +1,8 @@ +if(CMAKE_DISABLE_FIND_PACKAGE_ATLAS) + set(ATLAS_FOUND NO) + return() +endif() + set(ATLAS_NAMES) set(ATLAS_NAMES ${ATLAS_NAMES} tatlas) set(ATLAS_NAMES ${ATLAS_NAMES} satlas) diff --git a/cmake_aux/Modules/ARMA_FindMKL.cmake b/cmake_aux/Modules/ARMA_FindMKL.cmake index 38f6675..4702ab4 100644 --- a/cmake_aux/Modules/ARMA_FindMKL.cmake +++ b/cmake_aux/Modules/ARMA_FindMKL.cmake @@ -6,6 +6,11 @@ ## the link below explains why we're linking only with mkl_rt ## https://software.intel.com/en-us/articles/a-new-linking-model-single-dynamic-library-mkl_rt-since-intel-mkl-103 +if(CMAKE_DISABLE_FIND_PACKAGE_MKL) + set(MKL_FOUND NO) + return() +endif() + set(MKL_NAMES ${MKL_NAMES} mkl_rt) #set(MKL_NAMES ${MKL_NAMES} mkl_lapack) #set(MKL_NAMES ${MKL_NAMES} mkl_intel_thread) diff --git a/cmake_aux/Modules/ARMA_FindSuperLU5.cmake b/cmake_aux/Modules/ARMA_FindSuperLU5.cmake index 88dcb9c..16a26b8 100644 --- a/cmake_aux/Modules/ARMA_FindSuperLU5.cmake +++ b/cmake_aux/Modules/ARMA_FindSuperLU5.cmake @@ -5,6 +5,11 @@ # SuperLU_LIBRARY - Link this to use SuperLU # SuperLU_INCLUDE_DIR - directory of SuperLU headers +if(CMAKE_DISABLE_FIND_PACKAGE_SuperLU) + set(SuperLU_FOUND OFF) + return() +endif() + find_path(SuperLU_INCLUDE_DIR slu_ddefs.h PATHS ${CMAKE_SYSTEM_INCLUDE_PATH} /usr/include /usr/local/include /opt/local/include PATH_SUFFIXES superlu SuperLU ""