Re: [CMake] CMAKE way to get leaf of file path

2010-11-08 Thread Russell L. Carter
On 11/08/2010 12:59 PM, Alexander Neundorf wrote: > > To get the last component of a path, use > get_filename_component(... NAME) > To get the parent directory, use > get_filename_component(... PATH) > > > When you need to generate a unique name from a path, you could use the > STRING() comman

Re: [CMake] CMAKE way to get leaf of file path

2010-11-08 Thread Alexander Neundorf
On Monday 08 November 2010, Russell L. Carter wrote: > On 11/07/2010 01:49 AM, Michael Hertling wrote: > > On 11/07/2010 02:07 AM, Russell L. Carter wrote: > >> Hi there, > >> Happy cmake user here. I want to retrieve the leaf name of > >> the directory property "PARENT_DIRECTORY". This is really

Re: [CMake] CMAKE way to get leaf of file path

2010-11-08 Thread Russell L. Carter
On 11/07/2010 01:49 AM, Michael Hertling wrote: > On 11/07/2010 02:07 AM, Russell L. Carter wrote: >> >> Hi there, >> Happy cmake user here. I want to retrieve the leaf name of >> the directory property "PARENT_DIRECTORY". This is really >> a more general cmake question: how do I most efficientl

Re: [CMake] CMAKE way to get leaf of file path

2010-11-07 Thread Michael Hertling
On 11/07/2010 02:07 AM, Russell L. Carter wrote: > > Hi there, > Happy cmake user here. I want to retrieve the leaf name of > the directory property "PARENT_DIRECTORY". This is really > a more general cmake question: how do I most efficiently > manipulate path components of the absolute pathnam

[CMake] CMAKE way to get leaf of file path

2010-11-06 Thread Russell L. Carter
Hi there, Happy cmake user here. I want to retrieve the leaf name of the directory property "PARENT_DIRECTORY". This is really a more general cmake question: how do I most efficiently manipulate path components of the absolute pathnames that cmake uses and returns for many variables? In the cu