[CMake] Use of ~ for specifying paths

Filipe Sousa filipe at ipb.pt
Tue May 17 11:11:57 EDT 2005


On Tuesday 17 May 2005 15:59, Jon Trauntvein wrote:
> Hello all,
>
> I am trying to learn cmake and have created a test project in which I
> attempted to specify a path using the string, "~/work/coratools/".
> Apparently, this type of expression is not expanded by default.
> Thinking this, I also tried the following:
>
>   FILE(GLOB coratools_path ~/work/cora/coratools)
>
> I formed a message to print the coratools_path variable and it came
> out as an empty string.  From this I gather that GLOB will not expand
> the ~ expression either.  Is there any means of having cmake expand
> the meaning of ~ in any of its expressions?
$ENV{HOME}
>
> Regards,
>
> Jon Trauntvein
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake

-- 
Filipe Sousa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20050517/21c98760/attachment.pgp


More information about the CMake mailing list