summaryrefslogtreecommitdiffstats
path: root/Modules/FindLAPACK.cmake
diff options
context:
space:
mode:
authorAlin Elena <alinm.elena@gmail.com>2008-07-21 08:56:26 (GMT)
committerAlin Elena <alinm.elena@gmail.com>2008-07-21 08:56:26 (GMT)
commitdbb89f47aa2bcffe023fc1f2e23cb5466c331b17 (patch)
treed8723d1dfc44b93760b936f14394e4c068836ab5 /Modules/FindLAPACK.cmake
parentc52f9425c7a2b86f331274f2091111d3a7330760 (diff)
downloadCMake-dbb89f47aa2bcffe023fc1f2e23cb5466c331b17.zip
CMake-dbb89f47aa2bcffe023fc1f2e23cb5466c331b17.tar.gz
CMake-dbb89f47aa2bcffe023fc1f2e23cb5466c331b17.tar.bz2
ENH: Modules/CheckFortranFunctionExists.cmake helps gfortran to check the existence of a file
ENH: Modules/FindLAPACK.cmake returns the full list of libraries required to link against Lapack
Diffstat (limited to 'Modules/FindLAPACK.cmake')
-rw-r--r--Modules/FindLAPACK.cmake9
1 files changed, 6 insertions, 3 deletions
diff --git a/Modules/FindLAPACK.cmake b/Modules/FindLAPACK.cmake
index bb09b3b..693287d 100644
--- a/Modules/FindLAPACK.cmake
+++ b/Modules/FindLAPACK.cmake
@@ -75,9 +75,12 @@ if(_libraries_work)
#message("DEBUG: ${LIBRARIES} = ${${LIBRARIES}}")
endif(_libraries_work)
-if(NOT _libraries_work)
- set(${LIBRARIES} FALSE)
-endif(NOT _libraries_work)
+
+ if(_libraries_work)
+ set(${LIBRARIES} ${${LIBRARIES}} ${_blas})
+ else(_libraries_work)
+ set(${LIBRARIES} FALSE)
+ endif(_libraries_work)
endmacro(Check_Lapack_Libraries)