diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -478,8 +478,13 @@ libinput/device.cpp libinput/events.cpp libinput/libinput_logging.cpp - virtual_terminal.cpp ) + if (CMAKE_SYSTEM_NAME MATCHES "Linux") + set(kwin_KDEINIT_SRCS + ${kwin_KDEINIT_SRCS} + virtual_terminal.cpp + ) + endif() endif() kconfig_add_kcfg_files(kwin_KDEINIT_SRCS settings.kcfgc) diff --git a/plugins/platforms/CMakeLists.txt b/plugins/platforms/CMakeLists.txt --- a/plugins/platforms/CMakeLists.txt +++ b/plugins/platforms/CMakeLists.txt @@ -2,7 +2,9 @@ if(HAVE_DRM) add_subdirectory(drm) endif() - add_subdirectory(fbdev) + if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") + add_subdirectory(fbdev) + endif() if(HAVE_LIBHYBRIS) add_subdirectory(hwcomposer) endif()