snappy: fix include path in generated cmake target

This commit is contained in:
Dmitry Kalinkin 2019-04-05 19:07:15 -04:00
parent d956f2279b
commit a79fa1af48
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333

View File

@ -19,6 +19,11 @@ stdenv.mkDerivation rec {
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
postInstall = ''
substituteInPlace "$out"/lib/cmake/Snappy/SnappyTargets.cmake \
--replace 'INTERFACE_INCLUDE_DIRECTORIES "''${_IMPORT_PREFIX}/include"' 'INTERFACE_INCLUDE_DIRECTORIES "'$dev'"'
'';
checkTarget = "test";
doCheck = true;