diff options
author | don bright <hugh.m.bright@gmail.com> | 2011-12-24 15:22:18 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2011-12-24 15:22:18 (GMT) |
commit | a70715c309853ff9a47187d134649f27e4cb0867 (patch) | |
tree | 1a44bc580fa5cfb7633e712fb4ed896661eb8059 /eigen2.pri | |
parent | b6d9a2368a86e38f97e28d595bd0cd5256ff4899 (diff) |
fix eigen build on machine with system eigen + OPENSCAD_LIBRARIES without eigen
Diffstat (limited to 'eigen2.pri')
-rw-r--r-- | eigen2.pri | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 + } } } |