[CMake] Trouble with Variable in installation
Pierre-Julien Villoud
PVilloud at movea.com
Fri Jun 5 03:13:36 EDT 2009
Hi everyone,
I'd like to do the following for my install target :
"make install Lang=en_US" and in my CMakeLists.txt : install(FILES language/$ENV{Lang} ...) so that at each call of make install with a defined variable, it calls the install target with the good path and when I call just "make install" it calls the install target with Lang=en_US.
My problem is that the variable is replaced when the cmake is called so when I call "make install Lang=xx", the variable is empty. Is there a way to tell cmake to replace the variable with the current value (i.e at the make call) instead of the value at the cmake call ?
And apparently you can't define a custom target and do : add-dependencies(install myCustomTarget) (it says that the target doesn't exist).
Thanks in advance
Pierre-Julien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090605/925c751f/attachment.htm>
More information about the CMake
mailing list