[CMake] stupid question #1: parent dir of top level cmake dir

Tyler Roscoe tyler at cryptio.net
Thu Jun 18 01:35:47 EDT 2009


On Wed, Jun 17, 2009 at 10:32:46PM -0700, Tyler Roscoe wrote:
> On Wed, Jun 17, 2009 at 05:40:02PM -0700, Russell L. Carter wrote:
> > I see there is a PARENT_DIRECTORY property on the current source
> > dir for all dirs but the top level dir, where the docs state the
> > property returns an empty string.  What would be The Cross
> > Platform CMAKE Way for getting the parent directory of the top
> > level cmake directory path?
> 
> ${parent_directory}/..
> 
> ?

Oh, I misunderstood the question.

${CMAKE_HOME_DIRECTORY}/..

tyler


More information about the CMake mailing list