[CMake] escape a variable
Brad King
brad.king at kitware.com
Tue Jun 7 08:37:51 EDT 2005
klaas.holwerda wrote:
> I like to have an include path in my VC project files and makefiles,
> which is variable like:
>
> /I "$(WXWIN)"\lib\vc_dll\mswud
>
> i tried something like:
>
> SET( WXINCLUDES "\$(WXWIN)" )
>
> but that was not oke.
> So how can i achieve that the variable is not touched by Cmake itself?
CMake expands variables that are surrounded by curly braces "${}", not
parens "$()", so just write that without the backslash.
-Brad
More information about the CMake
mailing list