From f07304aac7f35084b2d1590b854b43910dbd453a Mon Sep 17 00:00:00 2001 From: Mark Abraham Date: Wed, 14 Dec 2011 12:10:26 +1100 Subject: [PATCH] Re-fixed static linking of maths libraries under UNIX In commit 5e51ffa9 I submitted a patch for the above case, and suggested the same to CMake. The CMake developers have refined this and I'm back-porting their fix here. See http://public.kitware.com/Bug/view.php?id=12477 for details Change-Id: Ib48bc6b5a87b66b51c893e24aa42e4cd4db32a38 --- cmake/FindLAPACK.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FindLAPACK.cmake b/cmake/FindLAPACK.cmake index 2eba100328..58dd7e752a 100644 --- a/cmake/FindLAPACK.cmake +++ b/cmake/FindLAPACK.cmake @@ -107,7 +107,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) -- 2.11.4.GIT