3
0
Fork 0
forked from mirrors/nixpkgs

grantlee5: patch CMake module correctly in release or debug build

This commit is contained in:
Thomas Tuegel 2017-05-27 16:20:57 -05:00
parent 96e2a3bd85
commit d143269ea8
No known key found for this signature in database
GPG key ID: 22CBF5249D4B4D59

View file

@ -21,9 +21,8 @@ mkDerivation rec {
postFixup =
# Disabuse CMake of the notion that libraries are in $dev
''
for mod in $dev/lib/cmake/Grantlee5/GrantleeTargets-*.cmake; do
sed -i $mod -e "s|\''${_IMPORT_PREFIX}|$out|"
done
sed -i $dev/lib/cmake/Grantlee5/GrantleeTargets-release.cmake \
-e "s|\''${_IMPORT_PREFIX}|$out|"
'';
setupHook = ./setup-hook.sh;