From 20eada7bbe340cd44056dc6778d775493ae2cf7e Mon Sep 17 00:00:00 2001 From: K Henriksson Date: Thu, 25 Nov 2021 16:17:15 -0800 Subject: [PATCH] Fix instructions for building on Mac Relative paths and .. components don't work with CMake's bundle support. The also adds a note about potential code signing problems. --- BUILD.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BUILD.md b/BUILD.md index 838b48c69..b4ba173cf 100644 --- a/BUILD.md +++ b/BUILD.md @@ -194,7 +194,7 @@ cmake \ -DCMAKE_C_COMPILER=/usr/bin/clang \ -DCMAKE_CXX_COMPILER=/usr/bin/clang++ \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX:PATH="../dist/" \ + -DCMAKE_INSTALL_PREFIX:PATH="$(dirname $PWD)/dist/" \ -DCMAKE_PREFIX_PATH="/path/to/Qt5.6/" \ -DQt5_DIR="/path/to/Qt5.6/" \ -DLauncher_LAYOUT=mac-bundle \ @@ -202,3 +202,6 @@ cmake \ .. make install ``` + +**Note:** The final app bundle may not run due to code signing issues, which +need to be fixed with `codesign -fs -`.