Skip to content

Commit

Permalink
fix ubuntu20 build (#3512)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgpearse committed Dec 21, 2023
1 parent f074be7 commit 1967c87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ jobs:
driveID: *ubuntu22LibID

- build_vapor:
moveToCommand: ${f/Linux/Ubuntu20}
moveToCommand: ${f/Linux/Ubuntu22}

- store_artifacts:
path: /tmp/workspace/installers
Expand Down
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -535,28 +535,28 @@ if (UNIX AND NOT APPLE)
COMPONENT Dependencies
)

# Include libxcb-xinerama for Ubuntu 22 by reading /etc/issue
# Include libxcb-xinerama for Ubuntu 20/22 by reading /etc/issue
if (EXISTS /etc/issue)
file(READ "/etc/issue" ETC_ISSUE)
string(REGEX MATCH "Ubuntu" DIST ${ETC_ISSUE})
if(DIST STREQUAL "Ubuntu 22")
if(DIST STREQUAL "Ubuntu")
file (GLOB XCB_FILES ${THIRD_PARTY_LIB_DIR}/libxcb-xinerama.*)
install (
FILES ${XCB_FILES}
DESTINATION ${INSTALL_LIB_DIR}
COMPONENT Dependencies
)
endif (DIST STREQUAL "Ubuntu 22")
endif(DIST STREQUAL "Ubuntu")
endif (EXISTS /etc/issue)

install (
FILES ${QTDIR}/plugins/platforms/libqxcb.so
FILES ${THIRD_PARTY_DIR}/plugins/platforms/libqxcb.so
DESTINATION ${INSTALL_LIB_DIR}/platforms
COMPONENT Dependencies
)

install (
DIRECTORY ${QTDIR}/plugins/xcbglintegrations
DIRECTORY ${THIRD_PARTY_DIR}/plugins/xcbglintegrations
DESTINATION ${INSTALL_LIB_DIR}
COMPONENT Dependencies
)
Expand Down

0 comments on commit 1967c87

Please sign in to comment.