summaryrefslogtreecommitdiff
path: root/eigen2.pri
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2011-12-24 15:22:18 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2011-12-24 15:22:18 (GMT)
commita70715c309853ff9a47187d134649f27e4cb0867 (patch)
tree1a44bc580fa5cfb7633e712fb4ed896661eb8059 /eigen2.pri
parentb6d9a2368a86e38f97e28d595bd0cd5256ff4899 (diff)
fix eigen build on machine with system eigen + OPENSCAD_LIBRARIES without eigen
Diffstat (limited to 'eigen2.pri')
-rw-r--r--eigen2.pri8
1 files changed, 5 insertions, 3 deletions
diff --git a/eigen2.pri b/eigen2.pri
index e188eaf..6be642e 100644
--- a/eigen2.pri
+++ b/eigen2.pri
@@ -7,9 +7,11 @@ eigen2 {
# Optionally specify location of Eigen2 using the
# OPENSCAD_LIBRARIES env. variable
isEmpty(EIGEN2_INCLUDEPATH) {
- OPENSCAD_LIBRARIES_EIGEN2 = $$(OPENSCAD_LIBRARIES)
- !isEmpty(OPENSCAD_LIBRARIES_EIGEN2) {
- EIGEN2_INCLUDEPATH = $$OPENSCAD_LIBRARIES_EIGEN2/include/eigen2
+ OPENSCAD_LIBRARIES_DIR = $$(OPENSCAD_LIBRARIES)
+ !isEmpty(OPENSCAD_LIBRARIES_DIR) {
+ exists($$OPENSCAD_LIBRARIES_DIR/include/eigen2) {
+ EIGEN2_INCLUDEPATH = $$OPENSCAD_LIBRARIES_DIR/include/eigen2
+ }
}
}
contact: Jan Huwald // Impressum