diff --git a/dumux/io/grid/cpgridmanager.hh b/dumux/io/grid/cpgridmanager.hh
index 2e7f9fe59e0ed9756939de84e0f7dd7cad14cade..32c1667a4c014ee499febe73c6454d03f5df6a91 100644
--- a/dumux/io/grid/cpgridmanager.hh
+++ b/dumux/io/grid/cpgridmanager.hh
@@ -46,6 +46,8 @@
 
 #include <dumux/common/parameters.hh>
 
+#if HAVE_ECL_INPUT
+
 namespace Dumux {
 
 /*!
@@ -106,6 +108,10 @@ private:
 
 } // end namespace Dumux
 
+#else
+#warning "Eclipse input support in opm-common is required to use the cornerpoint grid manager"
+#endif // HAVE_ECL_INPUT
+
 #endif // HAVE_OPM_GRID
 
 #endif