[CMake] Trouble with Variable in installation
Denis Scherbakov
denis_scherbakov at yahoo.com
Fri Jun 5 03:21:27 EDT 2009
> “make install
> Lang=en_US” and
> in my CMakeLists.txt : install(FILES language/$ENV{Lang}
>
> My problem is that
> the variable is replaced
> when the cmake is called so when I call “make install
> Lang=xx”, the
You may try to do something of the following
either: cmake -DLANG=en_US /path/to/source
either: SET(LANG "$ENV{LANG}") somewhere
either: "Use COMPONENT option from INSTALL command"
Denis
More information about the CMake
mailing list