[CMake] Unable to fetch directory name from path
Ashutosh Juneja
ashutosh.juneja at gmail.com
Thu Feb 5 12:38:35 EST 2009
Hi,
I am unable to fetch only directory name from an absolute path in
CMakeList.txt file.
GET_FILENAME_COMPONENT(c:/path/to/dir dirname NAME) does no produce any
output.
1. Is it only for files or not directories? or am I doing any mistake?
2. Is it possible to split a path in an list/array? ( like extract 'abc' and
'def' from /path/to/split/abc/and/def )
Thanks in advance.
Ashutosh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090205/cd606408/attachment.htm>
More information about the CMake
mailing list