qt55.polkit-qt: set CMAKE_INSTALL_INCLUDEDIR

This commit is contained in:
Thomas Tuegel 2016-04-19 07:48:50 -05:00
parent afef9d4b0a
commit 924c0d34e7
1 changed files with 2 additions and 1 deletions

View File

@ -18,12 +18,13 @@ stdenv.mkDerivation {
preConfigure = ''
cmakeFlags+=" -DCMAKE_INSTALL_LIBDIR=''${!outputLib}/lib"
cmakeFlags+=" -DCMAKE_INSTALL_INCLUDEDIR=''${!outputDev}/include"
'';
postFixup = ''
# Fix library location in CMake module
sed -i "$dev/lib/cmake/PolkitQt5-1/PolkitQt5-1Config.cmake" \
-e "s,set_and_check.POLKITQT-1_LIB_DIR.*$,set_and_check(POLKITQT-1_LIB_DIR \"''${!outputLib}/lib\"),"
-e "s,\\(set_and_check.POLKITQT-1_LIB_DIR\\).*$,\\1 \"''${!outputLib}/lib\"),"
'';
meta = {