diff --git a/cmake/modules/FindBoostFusion.cmake b/cmake/modules/FindBoostFusion.cmake
index c8e0a082536bd2f1fa027d15fbc3ca879db1f3fd..90579940aa81b9a6408716303e2404a19e074aa3 100644
--- a/cmake/modules/FindBoostFusion.cmake
+++ b/cmake/modules/FindBoostFusion.cmake
@@ -7,7 +7,7 @@
 #
 include(DuneBoost)
 
-if(BOOST_FOUND)
+if(HAVE_DUNE_BOOST)
   message(STATUS "Checking whether the Boost::FUSION library is available.")
   check_cxx_source_compiles("
 \#include <boost/fusion/container.hpp>
@@ -18,6 +18,6 @@ int main(){
   if(HAVE_BOOST_FUSION)
     message(STATUS "Boost::FUSION is available")
   endif(HAVE_BOOST_FUSION)
-else(BOOST_FOUND)
+else()
   message(STATUS "Skipping check for Boost::FUSION as Boost is not available.")
-endif(BOOST_FOUND)
+endif()