[CMake] Double @-substitution and configure_file()??

Michael Jackson mike.jackson at bluequartz.net
Mon Jan 18 11:43:23 EST 2010


I came across the same problem. I never really found a suitable  
working solution.
___________________________________________________________
Mike Jackson                      www.bluequartz.net
Principal Software Engineer       mike.jackson at bluequartz.net
BlueQuartz Software               Dayton, Ohio


On Jan 18, 2010, at 10:28 AM, Marcel Loose wrote:

> Hi all,
>
> Is it possible to somehow do a double @-substitution when using, e.g.,
> configure_file, similar to a double ${${...}} construct.
>
> $ cat myvar.cmake
> message(STATUS "@MYVAR@=@@MYVAR@@")
> message(STATUS "${MYVAR}=${${MYVAR}}")
>
> $ cmake -D MYVAR=Hello -D Hello="Hello World" -P myvar.cmake
> -- Hello=@Hello@
> -- Hello=Hello World
>
> Apparently this doesn't produce the same results.
>
> Best regards,
> Marcel Loose.
>
>
> _______________________________________________
> 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



More information about the CMake mailing list