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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to