<div>Hi,</div>
<div>&nbsp;</div>
<div>I am&nbsp;unable to fetch only directory name from an absolute path in CMakeList.txt file.</div>
<div>&nbsp;</div>
<div>GET_FILENAME_COMPONENT(c:/path/to/dir dirname NAME) does no produce any output.</div>
<div>&nbsp;</div>
<div>1. Is it only for files or not directories? or am I&nbsp;doing any mistake?</div>
<div>2. Is it possible to split a path in an list/array? ( like extract &#39;abc&#39; and &#39;def&#39; from /path/to/split/abc/and/def )</div>
<div>&nbsp;</div>
<div>Thanks in advance.</div>
<div>Ashutosh</div>