aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/FindEigen3.cmake
diff options
context:
space:
mode:
authorGravatar Silvio Traversaro <pegua1@gmail.com>2014-08-07 15:48:53 +0000
committerGravatar Silvio Traversaro <pegua1@gmail.com>2014-08-07 15:48:53 +0000
commit50085d2c28bcd4e3b8e1eb2e11dec60312cb8ac3 (patch)
treef7976a78f32c2071d2c00e3cc18ad94dbdb5683f /cmake/FindEigen3.cmake
parente51da9c3a8b448bc06110f1a7376211dcd32cc0e (diff)
FindEigen3.cmake: Add reading hints of Eigen directory location from environment variables EIGEN3_ROOT and EIGEN3_ROOT_DIR .
Diffstat (limited to 'cmake/FindEigen3.cmake')
-rw-r--r--cmake/FindEigen3.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/FindEigen3.cmake b/cmake/FindEigen3.cmake
index 9c546a05d..cea1afeab 100644
--- a/cmake/FindEigen3.cmake
+++ b/cmake/FindEigen3.cmake
@@ -9,6 +9,12 @@
# EIGEN3_FOUND - system has eigen lib with correct version
# EIGEN3_INCLUDE_DIR - the eigen include directory
# EIGEN3_VERSION - eigen version
+#
+# This module reads hints about search locations from
+# the following enviroment variables:
+#
+# EIGEN3_ROOT
+# EIGEN3_ROOT_DIR
# Copyright (c) 2006, 2007 Montel Laurent, <montel@kde.org>
# Copyright (c) 2008, 2009 Gael Guennebaud, <g.gael@free.fr>
@@ -62,6 +68,9 @@ if (EIGEN3_INCLUDE_DIR)
else (EIGEN3_INCLUDE_DIR)
find_path(EIGEN3_INCLUDE_DIR NAMES signature_of_eigen3_matrix_library
+ HINTS
+ ENV EIGEN3_ROOT
+ ENV EIGEN3_ROOT_DIR
PATHS
${CMAKE_INSTALL_PREFIX}/include
${KDE4_INCLUDE_DIR}