evironment variables are not collected by cmake
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Yade |
Won't Fix
|
Undecided
|
Unassigned |
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-
LOKI_INCLUDE_
LOKI_LIBRARY=
EIGEN3_
PYTHON_
If I put these variables in the cmake command with the "-D" option, everything works like a charm:
cmake -DEIGEN3_
Is it possible gather these variables from the environment?
description: | updated |
Hi,
I am not sure, whether it is a bug. Cmake has some environment
variables which effect its behavior [1], but it is not a common practice
for cmake-scripts to consider env-variables. We do it only for build-flags.
We, actually, did the same on cluster, compiling Yade adding -DVARIABLES
explicitly. One more option is to set CMAKE_INCLUDE_PATH and
CMAKE_LIBRARY_PATH and then cmake should look for those libs in
pre-defined paths.
[1] http:// www.cmake. org/Wiki/ CMake_Useful_ Variables# Environment_ Variables
Cheers,
Anton