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

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;