From 1dcb70a12f82ab6c3d1b64507ad68c23fce1c277 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Thu, 13 Dec 2012 20:54:05 +0100 Subject: [PATCH] guard autotests with X11 window system check result --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 61777ef02e..0b2fd243eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -716,7 +716,10 @@ if(LYX_INSTALL) endif() add_subdirectory(sourcedoc "${TOP_BINARY_DIR}/sourcedoc") -add_subdirectory(development/autotests "${TOP_BINARY_DIR}/autotests") +if(Q_WS_X11) + message(STATUS "Adding auto test...") + add_subdirectory(development/autotests "${TOP_BINARY_DIR}/autotests") +endif() message(STATUS) message(STATUS "Build options, switch LYX_* variables by -DLYX_*=ON or OFF:") -- 2.39.2