Hi James,
Looks like it is there since 2.2.1.
http://www.cmake.org/cgi-bin/viewcvs.cgi/Source/cmGetDirectoryPropertyCommand.cxx?rev=1.4.2.1&root=CMake&view=markup
Andy
James Bigler wrote:
John Biddiscombe wrote:
------------------------------------------------------------------------
Subject:
[CMake] Getting variables from a subdir
From:
"Ken Martin" <[EMAIL PROTECTED]>
Date:
Tue, 13 Sep 2005 11:02:28 -0400
To:
<cmake@cmake.org>
To:
<cmake@cmake.org>
I have added a new feature to help folks get variables from a subdir.
I have
modified the GET_DIRECTORY_PROPERTY command to have an optional argument
that is the directory to get the property from. I also added the
ability to
query variables from the GET_DIRECTORY_PROPERTY command. So you can
now do:
add_subdirectory( foo )
get_directory_property( bar DIRECTORY foo DEFINITION var_name)
You can also get all the other directory properties that
get_directory_property supports from foo as well if you want. Note
that if
you swap the order of the two lines above it will not work. You
cannot get a
property from a subdir before the subdir is processed. (sort of
obvious but
worth being clear on)
Thanks
Ken
What is the minimum version that supports this feature? I need to
check for it during the build process.
Thanks,
James
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
--
Andy Cedilnik
Kitware Inc.
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake