lol

cmake/setup-hook.sh: Don't skip build-RPATH

This should simplify using `nix-shell -A` or `nix develop` to develop
CMake based projects. CMake features a mechanism to use a different
RPATH for all executables in the build directory and only rewrite these
RPATHs on installation. This makes it possible to run executables
already from the build directory without having to set LD_LIBRARY_PATH.
This should simplify the checkPhase for cmake based projects and
hopefully not break anything.

Fixes: #22060

authored by

Josef Kemetmüller and committed by
Artturin
f7414e2b 116e8e93

+2 -3
+2 -3
pkgs/development/tools/build-managers/cmake/setup-hook.sh
··· 102 102 cmakeFlags="-DBUILD_TESTING=OFF $cmakeFlags" 103 103 fi 104 104 105 - # Avoid cmake resetting the rpath of binaries, on make install 106 - # And build always Release, to ensure optimisation flags 107 - cmakeFlags="-DCMAKE_BUILD_TYPE=${cmakeBuildType:-Release} -DCMAKE_SKIP_BUILD_RPATH=ON $cmakeFlags" 105 + # Always build Release, to ensure optimisation flags 106 + cmakeFlags="-DCMAKE_BUILD_TYPE=${cmakeBuildType:-Release} $cmakeFlags" 108 107 109 108 # Disable user package registry to avoid potential side effects 110 109 # and unecessary attempts to access non-existent home folder