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.e. install(FILES language/\$ENV{Lang} ...)
This way the $ENV{..} is evaluated at cmake time, but simply written into the
cmake_install.cmake.
Seems to work here.
Alex
_______________________________________________
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