diff options
author | Thomas Tuegel <ttuegel@gmail.com> | 2016-04-19 20:36:03 -0500 |
---|---|---|
committer | Thomas Tuegel <ttuegel@gmail.com> | 2016-04-20 10:01:06 -0500 |
commit | 491f7f017c4dd247413d3367d4733541c797d9ea (patch) | |
tree | a77c310e28eff71f794231a1309f07879f11e25e /pkgs/development/tools/build-managers | |
parent | d088e0621e11a03cd50b27863f883fb0f8d3db36 (diff) | |
download | nixpkgs-491f7f017c4dd247413d3367d4733541c797d9ea.tar nixpkgs-491f7f017c4dd247413d3367d4733541c797d9ea.tar.gz nixpkgs-491f7f017c4dd247413d3367d4733541c797d9ea.tar.bz2 nixpkgs-491f7f017c4dd247413d3367d4733541c797d9ea.tar.lz nixpkgs-491f7f017c4dd247413d3367d4733541c797d9ea.tar.xz nixpkgs-491f7f017c4dd247413d3367d4733541c797d9ea.tar.zst nixpkgs-491f7f017c4dd247413d3367d4733541c797d9ea.zip |
cmake: set LIBDIR and INCLUDEDIR for multiple outputs
Diffstat (limited to 'pkgs/development/tools/build-managers')
-rwxr-xr-x | pkgs/development/tools/build-managers/cmake/setup-hook.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/tools/build-managers/cmake/setup-hook.sh b/pkgs/development/tools/build-managers/cmake/setup-hook.sh index b14e9984bc3..eaabb37f498 100755 --- a/pkgs/development/tools/build-managers/cmake/setup-hook.sh +++ b/pkgs/development/tools/build-managers/cmake/setup-hook.sh @@ -44,6 +44,8 @@ cmakeConfigurePhase() { # executable. This flag makes the shared library accessible from its # nix/store directory. cmakeFlags="-DCMAKE_INSTALL_NAME_DIR=$prefix/lib $cmakeFlags" + cmakeFlags="-DCMAKE_INSTALL_LIBDIR=${!outputLib}/lib $cmakeFlags" + cmakeFlags="-DCMAKE_INSTALL_INCLUDEDIR=${!outputDev}/include $cmakeFlags" # Avoid cmake resetting the rpath of binaries, on make install # And build always Release, to ensure optimisation flags |