diff options
author | don bright <hugh.m.bright@gmail.com> | 2011-12-25 02:10:22 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2011-12-25 02:10:22 (GMT) |
commit | c5511b05ecfc821d2c46912a9dd472df4dec956a (patch) | |
tree | 3073ed5c61a181e3585570bcc99e32416eb84347 | |
parent | 1dfc184b7380600a1c13f85b6b6c0a9f92dcdbcd (diff) |
find eigen2 when OPENSCAD_LIBRARIES is set in regression test build
-rw-r--r-- | tests/CMakeLists.txt | 4 |
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 |