yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #09397
[Bug 1160959] Re: evironment variables are not collected by cmake
Dear Anton,
thank you for your answer. I thought that interpreted variables are
configured in the CMakeLists.txt in the software and that something in
there is missing that leads to the behaviour described in my initial
post. I came to that conclusion because a lot variables are interpreted
as expected, e.g. $PYTHON_EXECUTABLE, $PYTHON_INCLUDE_DIRS,
$LOKI_INCLUDE_DIR. So I'm still not sure whether this difference belongs
to cmake itself or the CMakeLists.txt and all included files.
However, thank you for the link to the cmake wiki. I extended our modulefiles like this:
export CMAKE_LIBRARY_PATH=$CMAKE_LIBRARY_PATH:$LOKI_LIBRARY
export CMAKE_INCLUDE_PATH=$CMAKE_INCLUDE_PATH:$LOKI_INCLUDE_DIR
export CMAKE_INCLUDE_PATH=$CMAKE_INCLUDE_PATH:$EIGEN3_INCLUDE_DIR
export CMAKE_INCLUDE_PATH=$CMAKE_INCLUDE_PATH:$PYTHON_INCLUDE_DIR
Regards
roemer2201
--
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.
https://bugs.launchpad.net/bugs/1160959
Title:
evironment variables are not collected by cmake
Status in Yet Another Dynamic Engine:
New
Bug description:
Dear All,
I'm currently trying to install yade on a cluster. On this machine all
software is handled through environment modules (see "apt-cache show
ennvironment-modules"). Therefore I compiled all dependencies of yade
by hand and put them in such an env-module. To the corressponding
module I put alle the Variables that cmake is going to interpret when
building Yade. Unfortunately these four variables are not gathered
from the users environment:
LOKI_INCLUDE_DIR=/shared/apps/loki/0.1.7/include
LOKI_LIBRARY=/shared/apps/loki/0.1.7/lib
EIGEN3_INCLUDE_DIR=/shared/apps/eigen/3.1.2/include/eigen3
PYTHON_INCLUDE_DIR=/shared/apps/python/2.6.8/include/python2.6
If I put these variables in the cmake command with the "-D" option,
everything works like a charm:
cmake -DEIGEN3_INCLUDE_DIR=/shared/apps/eigen/3.1.2/include/eigen3
-DLOKI_INCLUDE_DIR=/shared/apps/loki/0.1.7/include
-DLOKI_LIBRARY=/shared/apps/loki/0.1.7/lib
-DPYTHON_INCLUDE_DIR=/shared/apps/python/2.6.8/include/python2.6/
-DINSTALL_PREFIX=/$HOME/yade/ /$HOME/trunk/
Is it possible gather these variables from the environment?
To manage notifications about this bug go to:
https://bugs.launchpad.net/yade/+bug/1160959/+subscriptions
References