Build: Simplify code for Haskell find module
@@ -48,27 +48,17 @@ mark_as_advanced (GHC_EXECUTABLE
if (NOT GHC_EXECUTABLE)
set (HASKELL_NOTFOUND_INFO "GHC not found")
-endif (NOT GHC_EXECUTABLE)
-
-if (NOT CABAL_EXECUTABLE)
+elseif (NOT CABAL_EXECUTABLE)
set (HASKELL_NOTFOUND_INFO "cabal not found")
-endif (NOT CABAL_EXECUTABLE)
-
-if (NOT ALEX_EXECUTABLE)
+elseif (NOT ALEX_EXECUTABLE)
set (HASKELL_NOTFOUND_INFO "alex not found")
-endif (NOT ALEX_EXECUTABLE)
-
-if (NOT HAPPY_EXECUTABLE)
+elseif (NOT HAPPY_EXECUTABLE)
set (HASKELL_NOTFOUND_INFO "happy not found")
-endif (NOT HAPPY_EXECUTABLE)
-
-if (NOT C2HS_EXECUTABLE)
+elseif (NOT C2HS_EXECUTABLE)
set (HASKELL_NOTFOUND_INFO "c2hs not found")
-endif (NOT C2HS_EXECUTABLE)
-
-if (NOT GHC-PKG_EXECUTABLE)
+elseif (NOT GHC-PKG_EXECUTABLE)
set (HASKELL_NOTFOUND_INFO "ghc-pkg not found")
-endif (NOT GHC-PKG_EXECUTABLE)
+endif (NOT GHC_EXECUTABLE)
if (HASKELL_NOTFOUND_INFO)
set (HASKELL_NOTFOUND_INFO "${HASKELL_NOTFOUND_INFO}, please refer to the readme in src/bindings/haskell/README.md")
