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