diff --git a/Source/Core/DolphinNoGUI/CMakeLists.txt b/Source/Core/DolphinNoGUI/CMakeLists.txt index 2f7761789a..34890d294e 100644 --- a/Source/Core/DolphinNoGUI/CMakeLists.txt +++ b/Source/Core/DolphinNoGUI/CMakeLists.txt @@ -1,4 +1,4 @@ -if(NOT(USE_X11 OR ENABLE_HEADLESS)) +if(NOT((ENABLE_X11 AND X11_FOUND) OR ENABLE_HEADLESS)) return() endif()