diff options
Diffstat (limited to 'vcpkg/ports/kf5coreaddons/0001-Add-support-for-static-builds.patch')
| -rw-r--r-- | vcpkg/ports/kf5coreaddons/0001-Add-support-for-static-builds.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/vcpkg/ports/kf5coreaddons/0001-Add-support-for-static-builds.patch b/vcpkg/ports/kf5coreaddons/0001-Add-support-for-static-builds.patch new file mode 100644 index 0000000..837ef52 --- /dev/null +++ b/vcpkg/ports/kf5coreaddons/0001-Add-support-for-static-builds.patch @@ -0,0 +1,37 @@ +diff --git a/KF5CoreAddonsConfig.cmake.in b/KF5CoreAddonsConfig.cmake.in +index 711b8d41..2523da18 100644 +--- a/KF5CoreAddonsConfig.cmake.in ++++ b/KF5CoreAddonsConfig.cmake.in +@@ -3,6 +3,24 @@ + include(CMakeFindDependencyMacro) + find_dependency(Qt@QT_MAJOR_VERSION@Core @REQUIRED_QT_VERSION@) + ++if(NOT @BUILD_SHARED_LIBS@) ++ if(NOT WIN32) ++ find_dependency(Threads) ++ endif() ++ ++ if(@Inotify_FOUND@) ++ find_package(Inotify) ++ endif() ++ ++ if(@Procstat_FOUND@) ++ find_dependency(Procstat) ++ endif() ++ ++ if(@HAVE_QTDBUS@) ++ find_dependency(Qt@QT_MAJOR_VERSION@DBus @REQUIRED_QT_VERSION@) ++ endif() ++endif() ++ + @PACKAGE_SETUP_AUTOMOC_VARIABLES@ + + if(CMAKE_CROSSCOMPILING AND KF5_HOST_TOOLING) +@@ -23,6 +41,7 @@ else() + set_target_properties(KF5::desktoptojson PROPERTIES IMPORTED_LOCATION ${DESKTOPTOJSON_EXECUTABLE}) + endif() + endif() ++ + include("${CMAKE_CURRENT_LIST_DIR}/KF5CoreAddonsTargets.cmake") + include("${CMAKE_CURRENT_LIST_DIR}/KF5CoreAddonsMacros.cmake") + @PACKAGE_INCLUDE_QCHTARGETS@ |