diff --git a/CMakeLists.txt b/CMakeLists.txt
index e42ceeb0027f8334cdfa6c74644ec12bc2d7ffaf..1eb22ab606b5bae8d9b53d35b442cae0475a5ba4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,7 +32,7 @@ option(ENABLE_GUI "whether the graphical user interface should be enabled"
        ON)
 option(ENABLE_GFX "whether graphics support should be enabled"
        ON)
-option(ENABLE_GFX "whether to use the OpenGL Legacy GL implementation"
+option(OPENGLPREFERENCE_LEGACY "whether to use the OpenGL Legacy GL implementation"
        OFF)
 option(ENABLE_IMG "whether the image processing module should be compiled"
        ON)