use CMAKE_CURRENT_LISTDIR instead of CMAKE_SOURCE_DIR as GIT_PARENT
This guarantees that the search begins in the subdirectory (submodule)
where the function is called. Otherwise we will most likely pick up
the super-repository.