]> git.lyx.org Git - lyx.git/commitdiff
Amend f1fddd86
authorKornel Benko <kornel@lyx.org>
Thu, 29 Aug 2024 12:13:12 +0000 (14:13 +0200)
committerKornel Benko <kornel@lyx.org>
Thu, 29 Aug 2024 12:13:12 +0000 (14:13 +0200)
Add defines for HAVE_XCB_XCB_H and HAVE_LIBXCB to cmake build

CMakeLists.txt

index 0ca88e66e41d937766c26d00a745308a9389a969..3b6538e4b15ace6dee677468416046bbc58bb956 100644 (file)
@@ -1186,6 +1186,12 @@ get_data_destination(dest_data)
 list(APPEND tmp_vi "  LyX files dir:           ${CMAKE_INSTALL_PREFIX}/${dest_data}")
 string(REPLACE ";" "\\n" VERSION_INFO "${tmp_vi}")
 
+find_library(XCB_LIBRARY NAMES xcb)
+if (XCB_LIBRARY)
+  set(HAVE_LIBXCB 1 CACHE BOOL "" FORCE)
+else()
+  set(HAVE_LIBXCB 0 CACHE BOOL "" FORCE)
+endif()
 configure_file(${LYX_CMAKE_DIR}/config.h.cmake ${TOP_BINARY_DIR}/config.h)
 unset(opts)
 unset(tmp_vi)