From fd9551bb7951a856d5ad27efd4f1b5921b7f4f49 Mon Sep 17 00:00:00 2001 From: Scott Fennell Date: Mon, 6 Apr 2020 14:03:47 -0500 Subject: [PATCH] Fix args to FIND_PACKAGE_HANDLE_STANDARD_ARGS in FindMaven.cmake and FindTee.cmake closes #980 --- CMakeModules/FindMaven.cmake | 4 ++-- CMakeModules/FindTee.cmake | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeModules/FindMaven.cmake b/CMakeModules/FindMaven.cmake index a635b09a..89098242 100644 --- a/CMakeModules/FindMaven.cmake +++ b/CMakeModules/FindMaven.cmake @@ -13,7 +13,7 @@ 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) +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() diff --git a/CMakeModules/FindTee.cmake b/CMakeModules/FindTee.cmake index 41b3b7b1..59dddb83 100644 --- a/CMakeModules/FindTee.cmake +++ b/CMakeModules/FindTee.cmake @@ -15,7 +15,7 @@ find_program(TEE_EXECUTABLE tee) mark_as_advanced( TEE_EXECUTABLE ) include (FindPackageHandleStandardArgs) -FIND_PACKAGE_HANDLE_STANDARD_ARGS(TEE FOUND_VAR 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()