summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-06-01 17:36:01 +0000
committerKitware Robot <kwrobot@kitware.com>2017-06-01 13:36:06 -0400
commit59234fa2da4387fe9849d91fb9ad401d47a9b45c (patch)
tree05ecd7ffd2f80e89134b4417952e114ca16bfd5f
parent4b31267abfab1378e61b8406c9270284857810c1 (diff)
parent78841f27e3bee38961817b83b520c3b4a375f4c6 (diff)
downloadcmake-59234fa2da4387fe9849d91fb9ad401d47a9b45c.tar.gz
Merge topic 'FindGSL-debug-postfix'
78841f27 FindGSL: recognize libraries name with debug postfix as debug libraries Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !914
-rw-r--r--Modules/FindGSL.cmake11
1 files changed, 6 insertions, 5 deletions
diff --git a/Modules/FindGSL.cmake b/Modules/FindGSL.cmake
index 76059b33a3..8d10b6ce5c 100644
--- a/Modules/FindGSL.cmake
+++ b/Modules/FindGSL.cmake
@@ -37,9 +37,10 @@
#
# This script expects to find libraries at ``$GSL_ROOT_DIR/lib`` and the GSL
# headers at ``$GSL_ROOT_DIR/include/gsl``. The library directory may
-# optionally provide Release and Debug folders. For Unix-like systems, this
-# script will use ``$GSL_ROOT_DIR/bin/gsl-config`` (if found) to aid in the
-# discovery GSL.
+# optionally provide Release and Debug folders. If available, the libraries
+# named ``gsld``, ``gslblasd`` or ``cblasd`` are recognized as debug libraries.
+# For Unix-like systems, this script will use ``$GSL_ROOT_DIR/bin/gsl-config``
+# (if found) to aid in the discovery of GSL.
#
# Cache Variables
# ^^^^^^^^^^^^^^^
@@ -105,12 +106,12 @@ find_library( GSL_CBLAS_LIBRARY
)
# Do we also have debug versions?
find_library( GSL_LIBRARY_DEBUG
- NAMES gsl
+ NAMES gsld gsl
HINTS ${GSL_ROOT_DIR}/lib ${GSL_LIBDIR}
PATH_SUFFIXES Debug
)
find_library( GSL_CBLAS_LIBRARY_DEBUG
- NAMES gslcblas cblas
+ NAMES gslcblasd cblasd gslcblas cblas
HINTS ${GSL_ROOT_DIR}/lib ${GSL_LIBDIR}
PATH_SUFFIXES Debug
)