When executing code inside a function(), this variable contains the line number in the listfile where a current function has defined.
CMAKE_CURRENT_FUNCTION_LIST_FILE
CMAKE_CURRENT_LIST_DIR
Enter search terms or a module, class or function name.