2020-02-05 20:31:58 +00:00
|
|
|
|
|
|
|
# FindMaven
|
|
|
|
# --------
|
|
|
|
#
|
|
|
|
# Find mvn
|
|
|
|
#
|
|
|
|
# This module looks for mvn. This module defines the following values:
|
|
|
|
#
|
|
|
|
# ::
|
|
|
|
#
|
2020-03-28 17:57:39 +00:00
|
|
|
# MAVEN_EXECUTABLE: the full path to the mvn tool.
|
|
|
|
# MAVEN_FOUND: True if mvn has been found.
|
2020-02-05 20:31:58 +00:00
|
|
|
|
|
|
|
find_program(MAVEN_EXECUTABLE mvn)
|
|
|
|
include (FindPackageHandleStandardArgs)
|
2020-04-06 19:03:47 +00:00
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Maven FOUND_VAR MAVEN_FOUND REQUIRED_VARS MAVEN_EXECUTABLE)
|
|
|
|
if(MAVEN_FIND_REQUIRED AND NOT MAVEN_FOUND)
|
2020-03-28 17:47:40 +00:00
|
|
|
message(FATAL_ERROR "Could not find mvn")
|
|
|
|
endif()
|