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.
This commit is contained in:
K Henriksson 2021-11-25 16:17:15 -08:00
parent 859d710581
commit 20eada7bbe

View File

@ -194,7 +194,7 @@ cmake \
-DCMAKE_C_COMPILER=/usr/bin/clang \ -DCMAKE_C_COMPILER=/usr/bin/clang \
-DCMAKE_CXX_COMPILER=/usr/bin/clang++ \ -DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX:PATH="../dist/" \ -DCMAKE_INSTALL_PREFIX:PATH="$(dirname $PWD)/dist/" \
-DCMAKE_PREFIX_PATH="/path/to/Qt5.6/" \ -DCMAKE_PREFIX_PATH="/path/to/Qt5.6/" \
-DQt5_DIR="/path/to/Qt5.6/" \ -DQt5_DIR="/path/to/Qt5.6/" \
-DLauncher_LAYOUT=mac-bundle \ -DLauncher_LAYOUT=mac-bundle \
@ -202,3 +202,6 @@ cmake \
.. ..
make install make install
``` ```
**Note:** The final app bundle may not run due to code signing issues, which
need to be fixed with `codesign -fs -`.