From 193d20bf28c336c703deaa5b362c3ca1dff42433 Mon Sep 17 00:00:00 2001 From: "Francisco J. Solis" Date: Sun, 26 Jun 2022 11:09:30 -0500 Subject: [PATCH] Fix if-elseif-else structure in CMake file Change-Id: I2e7ec599e52a3e514ae6dc5d00fbf52cd4ee530b --- cmake/TheiaConfig.cmake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/TheiaConfig.cmake.in b/cmake/TheiaConfig.cmake.in index e20d57628..f9f162b66 100644 --- a/cmake/TheiaConfig.cmake.in +++ b/cmake/TheiaConfig.cmake.in @@ -43,7 +43,7 @@ macro(THEIA_REPORT_NOT_FOUND REASON_MSG) # use the camelcase library name, not uppercase. if (Theia_FIND_QUIETLY) message(STATUS "Failed to find Theia - " ${REASON_MSG} ${ARGN}) - else (Theia_FIND_REQUIRED) + elseif (Theia_FIND_REQUIRED) message(FATAL_ERROR "Failed to find Theia - " ${REASON_MSG} ${ARGN}) else() # Neither QUIETLY nor REQUIRED, use SEND_ERROR which emits an error