mirror of
https://github.com/nasa/trick.git
synced 2024-12-20 21:53:10 +00:00
20 lines
484 B
CMake
20 lines
484 B
CMake
|
|
# FindMaven
|
|
# --------
|
|
#
|
|
# Find mvn
|
|
#
|
|
# This module looks for mvn. This module defines the following values:
|
|
#
|
|
# ::
|
|
#
|
|
# MAVEN_EXECUTABLE: the full path to the mvn tool.
|
|
# MAVEN_FOUND: True if mvn has been found.
|
|
|
|
find_program(MAVEN_EXECUTABLE mvn)
|
|
include (FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Maven FOUND_VAR MAVEN_FOUND REQUIRED_VARS MAVEN_EXECUTABLE)
|
|
if(MAVEN_FIND_REQUIRED AND NOT MAVEN_FOUND)
|
|
message(FATAL_ERROR "Could not find mvn")
|
|
endif()
|