summaryrefslogtreecommitdiffstats
path: root/Modules/FindLAPACK.cmake
diff options
context:
space:
mode:
authorAlexey Ozeritsky <aozeritsky@gmail.com>2011-12-02 11:14:52 (GMT)
committerDavid Cole <david.cole@kitware.com>2011-12-05 16:41:52 (GMT)
commitf44f053a52db8f78288705454a04e001b8f2c74c (patch)
tree0324dcf8df3b5971839a2d2c05036139cc01555c /Modules/FindLAPACK.cmake
parent8a3bca50fa55b82f134c8a763bc837f0d5a17afa (diff)
downloadCMake-f44f053a52db8f78288705454a04e001b8f2c74c.zip
CMake-f44f053a52db8f78288705454a04e001b8f2c74c.tar.gz
CMake-f44f053a52db8f78288705454a04e001b8f2c74c.tar.bz2
FindLAPACK: Fix linking to static LAPACK on Unix (#12477)
Diffstat (limited to 'Modules/FindLAPACK.cmake')
-rw-r--r--Modules/FindLAPACK.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindLAPACK.cmake b/Modules/FindLAPACK.cmake
index bccf789..f88eed0 100644
--- a/Modules/FindLAPACK.cmake
+++ b/Modules/FindLAPACK.cmake
@@ -106,7 +106,7 @@ endforeach(_library ${_list})
if(_libraries_work)
# Test this combination of libraries.
if(UNIX AND BLA_STATIC)
- set(CMAKE_REQUIRED_LIBRARIES ${_flags} "-Wl,--start-group ${${LIBRARIES}} ${_blas};-Wl,--end-group" ${_threads})
+ set(CMAKE_REQUIRED_LIBRARIES ${_flags} "-Wl,--start-group" ${${LIBRARIES}} ${_blas} "-Wl,--end-group" ${_threads})
else(UNIX AND BLA_STATIC)
set(CMAKE_REQUIRED_LIBRARIES ${_flags} ${${LIBRARIES}} ${_blas} ${_threads})
endif(UNIX AND BLA_STATIC)