qt6Packages.qgpgme: split outputs (#475050)

This commit is contained in:
dotlambda
2025-12-30 10:42:01 +00:00
committed by GitHub
2 changed files with 22 additions and 0 deletions
@@ -17,6 +17,15 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-FWRbJHXMphGOsu0zGzqNlELJ1AGcOEa6P20lMhtKYa0=";
};
patches = [
./includedir-absolute-path.patch
];
outputs = [
"out"
"dev"
];
nativeBuildInputs = [
cmake
];
@@ -0,0 +1,13 @@
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 0955b27..e648982 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -264,7 +264,7 @@ set_target_properties(${targetname} PROPERTIES
SOVERSION "${LIBQGPGME_SOVERSION}"
)
-target_include_directories(${targetname} INTERFACE "$<INSTALL_INTERFACE:include/qgpgme-qt${QT_MAJOR_VERSION}>")
+target_include_directories(${targetname} INTERFACE "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/qgpgme-qt${QT_MAJOR_VERSION}>")
if (${QT_MAJOR_VERSION} EQUAL 6)
set(config_suffix Qt6)