grantlee5: Fix debug build

This commit is contained in:
Thomas Tuegel 2017-10-19 06:51:44 -05:00
parent 7132cbd598
commit 0cc2171910
No known key found for this signature in database
GPG Key ID: 22CBF5249D4B4D59

View File

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