cmake: fix INSTALL_NAME_DIR for darwin libraries

When there's a lib output libraries won't be intalled to $prefix causing
output cycles.
This commit is contained in:
Daiderd Jordan 2018-01-02 20:18:41 +01:00
parent e66a5f8862
commit 6f10cfc777
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -43,7 +43,7 @@ cmakeConfigurePhase() {
# libraries are in a system path or in the same directory as the
# executable. This flag makes the shared library accessible from its
# nix/store directory.
cmakeFlags="-DCMAKE_INSTALL_NAME_DIR=$prefix/lib $cmakeFlags"
cmakeFlags="-DCMAKE_INSTALL_NAME_DIR=${!outputLib}/lib $cmakeFlags"
cmakeFlags="-DCMAKE_INSTALL_LIBDIR=${!outputLib}/lib $cmakeFlags"
cmakeFlags="-DCMAKE_INSTALL_INCLUDEDIR=${!outputDev}/include $cmakeFlags"