keepassxc/cmake
alcroito abfebea4f2 Fix rpath handling and deployment of macOS helper binaries
CPack by default invokes the 'make install' target to install
all project files into a staging area for further packaging.

The order of installation follows the order of install() commands.

One of the first install() commands is the one that installs the
KeePassXC.app bundle and all the contents inside of it,
which includes POST_BUILD copied binaries like keepassxc-cli
and keepassxc-proxy.

Subsequent install(TARGETS) commands would then override the
keepassxc-cli and keepassxc-proxy binaries inside the staging area
with the ones which didn't have macdeployqt run on them (the ones from
src/cli and src/proxy).
Launching the binaries would then fail because of missing rpath
adjustments.

The libkeepassxc-autotype-cocoa.so library was working fine because
there is no install(TARGETS) command for it in a WITH_APP_BUNDLE build,
so the POST_BUILD copy with the adjusted rpaths was preserved.

To fix the issue and make the handling consistent, macdeployqt is no
longer run at POST_BUILD time, but instead at 'make install' time,
after each binary is installed by install(TARGETS).

libkeepassxc-autotype-cocoa.so also has its install command run
unconditionally now.

The build dir binaries that are POST_BUILD copied into
src/KeePassXC.app continue to run because they use the build dir
rpaths that CMake embeds by default. They don't macdeployqt run for
them anymore, which slightly speeds up the build time.

Fixes: #7475
2022-03-05 11:03:50 -05:00
..
CLangFormat.cmake Add tags feature 2022-01-28 16:13:49 -05:00
CodeCoverage.cmake Clean up code coverage reporting. 2021-09-28 14:15:37 +02:00
FindBotan2.cmake Improve Visual Studio and vcpkg support 2021-11-16 07:01:48 -05:00
FindMinizip.cmake KeeShare: Remove checking signed container 2021-12-14 23:23:23 -05:00
FindPCSC.cmake Implement support for Yubikeys and potential other tokens via wireless NFC using smartcard readers (Rebase) (#6895) 2021-10-01 10:39:07 -04:00
FindQREncode.cmake Add support for Microsoft Visual Studio buildchain 2021-09-19 17:16:45 -04:00
FindReadline.cmake Minor documentation and script cleanups (#6868) 2021-09-21 00:17:46 -04:00
GenerateProductVersion.cmake Cleanup CMakeFiles prior to release 2019-01-30 15:03:03 -05:00
KPXCHelpers.cmake Fix rpath handling and deployment of macOS helper binaries 2022-03-05 11:03:50 -05:00
MakePortableZip.cmake Add powershell version of release-tool 2022-01-31 07:00:08 -05:00
VersionInfo.in Set windows EXE resource properties, resolves #329 2017-02-20 00:33:11 +01:00
VersionResource.rc Set windows EXE resource properties, resolves #329 2017-02-20 00:33:11 +01:00