auto-clone C/C, if possible

This commit is contained in:
Sergei Golubchik 2016-09-05 08:09:16 +02:00
commit 5ea5a7f7e7
3 changed files with 19 additions and 6 deletions

View file

@ -115,6 +115,11 @@ FOREACH(_base
ENDIF()
ENDFOREACH()
FOREACH(tool gtar tar git)
STRING(TOUPPER ${tool} TOOL)
FIND_PROGRAM(${TOOL}_EXECUTABLE ${tool} DOC "path to the executable")
MARK_AS_ADVANCED(${TOOL}_EXECUTABLE)
ENDFOREACH()
# Following autotools tradition, add preprocessor definitions
# specified in environment variable CPPFLAGS