]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Added correct interface to FindGSL.
authorLuca Heltai <luca.heltai@sissa.it>
Mon, 2 May 2016 16:16:02 +0000 (18:16 +0200)
committerLuca Heltai <luca.heltai@sissa.it>
Mon, 2 May 2016 16:16:02 +0000 (18:16 +0200)
cmake/modules/FindGSL.cmake

index d34649bb270dcce5237755aae6a1952e17dcdb20..69bbb303ebcbfcaab9c06229e2d844b741ee4bd4 100644 (file)
@@ -19,6 +19,7 @@
 # This module exports
 #
 #   GSL_LIBRARIES
+#   GSL_INCLUDE_LIBRARIES
 #   GSL_LINKER_FLAGS
 #
 
@@ -31,9 +32,17 @@ DEAL_II_FIND_LIBRARY(GSL_LIBRARY
   PATH_SUFFIXES lib${LIB_SUFFIX} lib64 lib
   )
 
+DEAL_II_FIND_PATH(GSL_INCLUDE_DIR gsl/gsl_version.h
+  HINTS ${GSL_DIR}
+  PATH_SUFFIXES include
+  )
 
 DEAL_II_PACKAGE_HANDLE(GSL
   LIBRARIES
     REQUIRED GSL_LIBRARY
-  CLEAR GSL_LIBRARY
+  INCLUDE_DIRS
+    REQUIRED GSL_INCLUDE_DIR
+  USER_INCLUDE_DIRS
+    REQUIRED GSL_INCLUDE_DIR
+  CLEAR GSL_LIBRARY GSL_INCLUDE_DIR
   )

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.