Skip to content

Commit

Permalink
[kf5globalaccel] Fix build on windows when x11 is around (#26564)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 1, 2022
1 parent 6eb35f5 commit c0b6d35
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ports/kf5globalaccel/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@ vcpkg_from_github(
# Prevent KDEClangFormat from writing to source effectively blocking parallel configure
file(WRITE "${SOURCE_PATH}/.clang-format" "DisableFormat: true\nSortIncludes: false\n")

if(NOT VCPKG_TARGET_IS_LINUX)
list(APPEND KGLOBALACCEL_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_X11=ON)
endif()

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_TESTING=OFF
${KGLOBALACCEL_OPTIONS}
)

vcpkg_cmake_install()
Expand Down
2 changes: 1 addition & 1 deletion ports/kf5globalaccel/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kf5globalaccel",
"version": "5.89.0",
"port-version": 1,
"port-version": 2,
"description": "lobal desktop keyboard shortcuts",
"homepage": "https://api.kde.org/frameworks/kglobalaccel/html/index.html",
"dependencies": [
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3266,7 +3266,7 @@
},
"kf5globalaccel": {
"baseline": "5.89.0",
"port-version": 1
"port-version": 2
},
"kf5guiaddons": {
"baseline": "5.89.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/k-/kf5globalaccel.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "610034ef9764b5d45569588235e9a5838ae05757",
"version": "5.89.0",
"port-version": 2
},
{
"git-tree": "5a4dc9bc81874eec1192fa77b8a04ab67fb75239",
"version": "5.89.0",
Expand Down

0 comments on commit c0b6d35

Please sign in to comment.