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.
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
> 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
> 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
> “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
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