[CMake] FIND_PACKAGE () : self location ?

Nils Gladitz nilsgladitz at gmail.com
Mon Nov 10 03:52:12 EST 2014


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


More information about the CMake mailing list