From 75e8ed5ce0df0e2ec81be2ad91287cd9ca98539f Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 22 Feb 2023 06:30:03 -0500 Subject: [PATCH] When FIND_VERSION is set, don't error out if a lower version is found, just unset GSOAP_FOUND --- cmake/Modules/FindGSOAP.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/Modules/FindGSOAP.cmake b/cmake/Modules/FindGSOAP.cmake index c7f181bec..6a165e100 100644 --- a/cmake/Modules/FindGSOAP.cmake +++ b/cmake/Modules/FindGSOAP.cmake @@ -106,8 +106,9 @@ find_package_handle_standard_args(GSOAP DEFAULT_MSG GSOAP_CXX_LIBRARIES mark_as_advanced(GSOAP_INCLUDE_DIR GSOAP_LIBRARIES GSOAP_WSDL2H GSOAP_SOAPCPP2) if(GSOAP_FOUND) - if(GSOAP_FIND_REQUIRED AND GSOAP_FIND_VERSION AND ${GSOAP_VERSION} VERSION_LESS ${GSOAP_FIND_VERSION}) - message(SEND_ERROR "Found GSOAP version ${GSOAP_VERSION} less then required ${GSOAP_FIND_VERSION}.") + if(GSOAP_FIND_VERSION AND ${GSOAP_VERSION} VERSION_LESS ${GSOAP_FIND_VERSION}) + message("Found GSOAP version ${GSOAP_VERSION} less then required ${GSOAP_FIND_VERSION}.") + unset(GSOAP_FOUND) endif() endif()