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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to