Re: [CMake] Trouble with Variable in installation

2009-06-17 Thread Alexander Neundorf
On Friday 05 June 2009, Pierre-Julien Villoud wrote: > 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 Did you try escaping the $ ? I.

Re: [CMake] Trouble with Variable in installation

2009-06-08 Thread Pierre-Julien Villoud
cherba...@yahoo.com] Envoyé : vendredi 5 juin 2009 09:51 À : cmake; Pierre-Julien Villoud Objet : RE: [CMake] Trouble with Variable in installation > I tried to > add a target which do the cmake and define the variable like > that : > > add_custom_target(MyInstall COMMAND "cmak

Re: [CMake] Trouble with Variable in installation

2009-06-05 Thread Denis Scherbakov
> I tried to > add a target which do the cmake and define the variable like > that : > > add_custom_target(MyInstall COMMAND "cmake -DLANG=%LANG%") > add_dependencies(install MyInstall) > > but I can't add the dependency between the two targets. I think currently it is not possible to force

Re: [CMake] Trouble with Variable in installation

2009-06-05 Thread Pierre-Julien Villoud
> either: "Use COMPONENT option from INSTALL command" I will look forward into this since I don't know how it works. Thanks ! Pierre-Julien -Message d'origine- De : Denis Scherbakov [mailto:denis_scherba...@yahoo.com] Envoyé : vendredi 5 juin 2009 09:21 À : cm

Re: [CMake] Trouble with Variable in installation

2009-06-05 Thread Denis Scherbakov
> “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/t

[CMake] Trouble with Variable in installation

2009-06-05 Thread Pierre-Julien Villoud
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