On 11/10/2014 06:32 AM, Nicholas Yue wrote:
   I am improving an in-house Find*.cmake and need to determine
(programmatically) where it (the Find*.cmake file) is located because I
need to run a companion python script. Is there some variable I can query ?

CMAKE_CURRENT_LIST_DIR for the full path to the parent directory or CMAKE_CURRENT_LIST_FILE for the full path of the script file itself.

Nils
--

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to