In the new CMake build system, we have the following four environment variables:
DOWNWARD_COIN_ROOT
DOWNWARD_COIN_ROOT_RELEASE
DOWNWARD_COIN_ROOT_DEBUG
DOWNWARD_CPLEX_ROOT
For COIN we have three variables, because on Windows we need to differentiate
between debug and release libraries, and on Linux, we don't. CPLEX uses
standardized paths to distinguish these versions, so we only need one variable.
If both DOWNWARD_COIN_ROOT and DOWNWARD_COIN_ROOT_RELEASE are set, we look for
the library in both paths and prefer the more specific one.
Distinguishing between 32- and 64-bit builds is similar: CPLEX uses standardized
paths, so we can use the same environment variable for both. This only assumes
that both the 32-bit version and the 64-bit version were installed with the same
version and the same prefix, e.g., in "/" or "~/local/". If we want to support
different prefixes or different versions for 32- and 64-bit. We would need two
environment variables.
For COIN, there are no standardized paths and it is not possible to have the 32-
and 64-bit version in the same prefix. So here we need additional variables.
I suggest we use the following variables:
DOWNWARD_COIN_ROOT
DOWNWARD_COIN_ROOT32
DOWNWARD_COIN_ROOT64
DOWNWARD_COIN_ROOT_RELEASE32
DOWNWARD_COIN_ROOT_RELEASE64
DOWNWARD_COIN_ROOT_DEBUG32
DOWNWARD_COIN_ROOT_DEBUG64
DOWNWARD_CPLEX_ROOT
|