Merge topic 'findlapack-0012477-new'
f44f053
FindLAPACK: Fix linking to static LAPACK on Unix (#12477)
This commit is contained in:
commit
cc35c8fad3
|
@ -106,7 +106,7 @@ endforeach(_library ${_list})
|
||||||
if(_libraries_work)
|
if(_libraries_work)
|
||||||
# Test this combination of libraries.
|
# Test this combination of libraries.
|
||||||
if(UNIX AND BLA_STATIC)
|
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)
|
else(UNIX AND BLA_STATIC)
|
||||||
set(CMAKE_REQUIRED_LIBRARIES ${_flags} ${${LIBRARIES}} ${_blas} ${_threads})
|
set(CMAKE_REQUIRED_LIBRARIES ${_flags} ${${LIBRARIES}} ${_blas} ${_threads})
|
||||||
endif(UNIX AND BLA_STATIC)
|
endif(UNIX AND BLA_STATIC)
|
||||||
|
|
Loading…
Reference in New Issue