[CMake] Are CMake files aware of their path?

2009-10-20 Thread James C. Sutherland
If I add a CMake file via add_subdirectory is there a way to obtain its absolute or relative path? ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages

Re: [CMake] Are CMake files aware of their path?

2009-10-20 Thread Alexander Neundorf
On Tuesday 20 October 2009, James C. Sutherland wrote: If I add a CMake file via add_subdirectory is there a way to obtain its absolute or relative path? Check ${CMAKE_CURRENT_LIST_FILE}, you may combine this with get_filename_component(). Alex ___