[LyX/master] Amend f1fddd86
Kornel Benko
kornel at lyx.org
Thu Aug 29 12:06:02 UTC 2024
commit 3bc4554e5762c3484477e1c590632756e3f310ad
Author: Kornel Benko <kornel at lyx.org>
Date: Thu Aug 29 14:13:12 2024 +0200
Amend f1fddd86
Add defines for HAVE_XCB_XCB_H and HAVE_LIBXCB to cmake build
---
CMakeLists.txt | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0ca88e66e4..3b6538e4b1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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)
More information about the lyx-cvs
mailing list