diff --git a/CMakeLists.txt b/CMakeLists.txt index 4699a11ba..f5f1d4690 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,10 +31,6 @@ INCLUDE(${CMAKE_MODULE_PATH}/SetFortranFlags.cmake) # taken care of here, such as the fact that the FindOpenMP routine doesn't know # about Fortran. INCLUDE(${CMAKE_MODULE_PATH}/SetParallelizationLibrary.cmake) -# Setup the LAPACK libraries. This also takes care of peculiarities, such as -# the fact the searching for MKL requires a C compiler, and that the results -# are not stored in the cache. -INCLUDE(${CMAKE_MODULE_PATH}/SetUpLAPACK.cmake) # There is an error in CMAKE with this flag for pgf90. Unset it GET_FILENAME_COMPONENT(FCNAME ${CMAKE_Fortran_COMPILER} NAME) diff --git a/cmake/Modules/SetUpLAPACK.cmake b/cmake/Modules/SetUpLAPACK.cmake deleted file mode 100644 index ae5bdea52..000000000 --- a/cmake/Modules/SetUpLAPACK.cmake +++ /dev/null @@ -1,11 +0,0 @@ -# Find LAPACK (finds BLAS also) if not already found -IF(NOT LAPACK_FOUND) - ENABLE_LANGUAGE(C) # Some libraries need a C compiler to find - FIND_PACKAGE(LAPACK REQUIRED) - # Remember that LAPACK (and BLAS) was found. For some reason the - # FindLAPACK routine doesn't place these into the CACHE. - SET(BLAS_FOUND TRUE CACHE INTERNAL "BLAS was found" FORCE) - SET(LAPACK_FOUND TRUE CACHE INTERNAL "LAPACK was found" FORCE) - SET(BLAS_LIBRARIES ${BLAS_LIBRARIES} CACHE INTERNAL "BLAS LIBS" FORCE) - SET(LAPACK_LIBRARIES ${LAPACK_LIBRARIES} CACHE INTERNAL "LAPACK LIBS" FORCE) -ENDIF(NOT LAPACK_FOUND)