Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 87e1d01f authored by Thomas Moulard's avatar Thomas Moulard
Browse files

Add patch to avoid linking against libgslcblas.so if possible.

parent cb87bbcd
No related branches found
No related tags found
No related merge requests found
From: Fabien Spindler <fabien.spindler@inria.fr>
Date: Fri, 11 Jul 2014 03:47:21 +0900
Subject: Avoid linking against useless dependency in FindGSL.cmake if
possible.
* CMakeModules/FindGSL.cmake: do not link against libgslcblas.so if
not needed.
Origin: upstream, private email
---
CMakeModules/FindGSL.cmake | 2 ++
1 file changed, 2 insertions(+)
diff --git a/CMakeModules/FindGSL.cmake b/CMakeModules/FindGSL.cmake
index adecf19..62f89fe 100644
--- a/CMakeModules/FindGSL.cmake
+++ b/CMakeModules/FindGSL.cmake
@@ -173,6 +173,7 @@ ELSE(WIN32)
FOREACH(libs ${GSL_LINK_LIBRARIES})
STRING(REGEX REPLACE "[-][l]" "" GSL_LIB_ONES ${libs})
#MESSAGE("GSL_LIB_ONES=${GSL_LIB_ONES} - ${libs}")
+ if(NOT ${GSL_LIB_ONES} MATCHES "gslcblas")
MARK_AS_ADVANCED(LIBGSL_${GSL_LIB_ONES})
FIND_LIBRARY(LIBGSL_${GSL_LIB_ONES}
NAMES ${GSL_LIB_ONES}
@@ -186,6 +187,7 @@ ELSE(WIN32)
#MESSAGE("LIB_GSL=${LIB_GSL} - ${libs}")
LIST(APPEND GSL_LIBRARIES ${LIBGSL_${GSL_LIB_ONES}})
ENDIF()
+ endif()
ENDFOREACH(libs)
#MESSAGE("GSL_LIBRARIES=${GSL_LIBRARIES}")
0001-Install-vpConfig.h-in-include-architecture-triplet.patch
0002-Fix-compat-with-ffmpeg-libraries.patch
0003-Subject-Install-OGRE-config-files-in-arch-specific-d.patch
0004-Subject-Remove-commented-lines-in-visp-config.instal.patch
0003-Install-OGRE-config-files-in-arch-specific-directory.patch
0004-Remove-commented-lines-in-visp-config.install.in.patch
0005-Avoid-linking-against-useless-dependency-in-FindGSL..patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment