diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 1e5c77223..bb8e4f61d 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -36,7 +36,7 @@ if(FREERDP_VENDOR AND WITH_CLIENT) add_subdirectory(X11) endif() - if(WITH_WAYLAND) + if(WITH_WAYLAND AND WAYLAND_FOUND) add_subdirectory(Wayland) endif()