mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-24 23:31:32 +08:00
Fix CMake scripts for FreeBSD (#550)
This fixes linking of the XCB library on FreeBSD.
This commit is contained in:
parent
0d10c6e2d9
commit
2d2de53dcd
@ -85,7 +85,12 @@ target_link_libraries(${library_name} PUBLIC Qt${QT_VERSION_MAJOR}::Core
|
||||
Qt${QT_VERSION_MAJOR}::Gui
|
||||
Qt${QT_VERSION_MAJOR}::Widgets)
|
||||
if (UNIX AND NOT APPLE)
|
||||
target_link_libraries(${library_name} PUBLIC xcb)
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
||||
find_package(X11 REQUIRED)
|
||||
target_link_libraries(${library_name} PUBLIC X11::xcb)
|
||||
else()
|
||||
target_link_libraries(${library_name} PUBLIC xcb)
|
||||
endif()
|
||||
endif()
|
||||
set_target_properties(${library_name} PROPERTIES
|
||||
AUTOMOC ON
|
||||
|
Loading…
Reference in New Issue
Block a user