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:
parent
e66a5f8862
commit
6f10cfc777
|
@ -43,7 +43,7 @@ cmakeConfigurePhase() {
|
||||||
# libraries are in a system path or in the same directory as the
|
# libraries are in a system path or in the same directory as the
|
||||||
# executable. This flag makes the shared library accessible from its
|
# executable. This flag makes the shared library accessible from its
|
||||||
# nix/store directory.
|
# 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_LIBDIR=${!outputLib}/lib $cmakeFlags"
|
||||||
cmakeFlags="-DCMAKE_INSTALL_INCLUDEDIR=${!outputDev}/include $cmakeFlags"
|
cmakeFlags="-DCMAKE_INSTALL_INCLUDEDIR=${!outputDev}/include $cmakeFlags"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue