summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2011-12-25 02:10:22 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2011-12-25 02:10:22 (GMT)
commitc5511b05ecfc821d2c46912a9dd472df4dec956a (patch)
tree3073ed5c61a181e3585570bcc99e32416eb84347 /tests
parent1dfc184b7380600a1c13f85b6b6c0a9f92dcdbcd (diff)
find eigen2 when OPENSCAD_LIBRARIES is set in regression test build
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index a8ab9b9..ed5bdc0 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -131,6 +131,10 @@ if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
endif()
endif()
+if (NOT $ENV{OPENSCAD_LIBRARIES} STREQUAL "")
+ set(EIGEN2_INCLUDE_DIR "$ENV{OPENSCAD_LIBRARIES}/include/eigen2")
+endif()
+
if (NOT EIGEN2_INCLUDE_DIR)
find_path(EIGEN2_INCLUDE_DIR
Eigen/Core
contact: Jan Huwald // Impressum