cmakemodules should stop configure if required closes #973

This commit is contained in:
Scott Fennell 2020-03-28 12:47:40 -05:00
parent 1e5a15dd9f
commit fcd58ae925
2 changed files with 8 additions and 3 deletions

View File

@ -13,4 +13,7 @@
find_program(MAVEN_EXECUTABLE mvn)
include (FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(MAVEN REQUIRED_VARS MAVEN_EXECUTABLE)
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()

View File

@ -15,5 +15,7 @@ find_program(TEE_EXECUTABLE tee)
mark_as_advanced( TEE_EXECUTABLE )
include (FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(TEE REQUIRED_VARS TEE_EXECUTABLE)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(TEE FOUND_VAR REQUIRED_VARS TEE_EXECUTABLE)
if(Tee_FIND_REQUIRED AND NOT TEE_FOUND)
message(FATAL_ERROR "Could not find tee")
endif()