1 # - Find Ant (a java build tool)
3 # ANT_VERSION version string of ant if found
4 # ANT_FOUND, If false, do not try to use ant
6 exec_program(ant ARGS -version OUTPUT_VARIABLE ANT_VERSION
7 RETURN_VALUE ANT_RETURN)
9 if(ANT_RETURN STREQUAL
"0")
11 if(NOT ANT_FIND_QUIETLY)
12 message(STATUS
"Found Ant: ${ANT_VERSION}")
13 endif(NOT ANT_FIND_QUIETLY)
14 else(ANT_RETURN STREQUAL "0")
16 endif(ANT_RETURN STREQUAL "0")