From 635af89dab8fb43789df364457ecfc492ce71745 Mon Sep 17 00:00:00 2001 From: David Wales Date: Fri, 7 Jul 2023 23:11:53 +1000 Subject: [PATCH] Document cmake option NO_STATIC_BOOST=TRUE Without this option, cmake won't find dynamically linked boost libraries, such as from MacPorts. --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 9c6d43c5..736db238 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,7 @@ Requirements: * perl * ruby 2.0 or later * bison +* boost Optional (for additional front-ends): * SDL 2 @@ -147,6 +148,19 @@ applications to run. When this is active, you can start executor with the `-logtraps` option to get logging output for every MacOS function (trap) called by the running program. +### NO_STATIC_BOOST - Look for dynamically linked boost libraries (e.g. from MacPorts) + + cmake . -DNO_STATIC_BOOST=TRUE + +Without this, you will get the following error when trying to find dynamically linked boost libraries, such as from MacPorts: + + CMake Error at /opt/local/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message): + Could NOT find Boost (missing: filesystem system program_options) (found + version "1.76.0") + Call Stack (most recent call first): + /opt/local/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) + /opt/local/share/cmake-3.24/Modules/FindBoost.cmake:2376 (find_package_handle_standard_args) + src/CMakeLists.txt:16 (find_package) Overview --------