From 451cb9edfdd716faf0c685be950ce8b2e236da58 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?M=C3=A9d=C3=A9ric=20Fourmy?= <mfourmy@laas.fr>
Date: Tue, 1 Sep 2020 10:05:29 +0200
Subject: [PATCH] hotfix: typo in if else statement of Findcsm.cmake

---
 cmake_modules/Findcsm.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake_modules/Findcsm.cmake b/cmake_modules/Findcsm.cmake
index 938022e92..6dafd97de 100755
--- a/cmake_modules/Findcsm.cmake
+++ b/cmake_modules/Findcsm.cmake
@@ -47,7 +47,7 @@ macro(csm_report_not_found REASON_MSG)
   # FindPackage() use the camelcase library name, not uppercase.
   if (csm_FIND_QUIETLY)
     message(STATUS "Failed to find csm- " ${REASON_MSG} ${ARGN})
-  else (csm_FIND_REQUIRED)
+  elseif (csm_FIND_REQUIRED)
     message(FATAL_ERROR "Failed to find csm - " ${REASON_MSG} ${ARGN})
   else()
     # Neither QUIETLY nor REQUIRED, use SEND_ERROR which emits an error
-- 
GitLab