diff --git a/CMakeLists.txt b/CMakeLists.txt
index b7c12bfcc9781c778fd0be29fe15ba80f381d8c5..2c8ff678800444a7c7717492d9cfbc7f3cef411f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -743,8 +743,6 @@ if(HAVE_FLTK)
 elseif(HAVE_QT)
   qt4_wrap_cpp(GMSH_MOC_SRC ${GMSH_MOC_HDR})
   add_executable(gmsh WIN32 Qt/Main.cpp ${GMSH_SRC} ${GMSH_MOC_SRC})
-elseif(HAVE_OPENGL)
-  add_executable(gmsh Common/Main.cpp ${GMSH_SRC})
 else(HAVE_FLTK)
   add_executable(gmsh Common/Main.cpp ${GMSH_SRC})
 endif(HAVE_FLTK)