Skip to content

Commit b062567

Browse files
authored
Update INSTALL.md
1 parent f050234 commit b062567

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

INSTALL.md

+7
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,18 @@ If a new version of boost is released, then older cmake will not have instructio
186186
The easiest way to fix this is to use the last version of boost that is compatible with the most recent version of cmake.
187187
At the time of this writing, CMake 3.10 supported up to Boost 1.65.1
188188

189+
#### MacOS
190+
191+
If you are using MacOS and homebrew, then install an old version of boost with (e.g.) `brew install [email protected]`. Then the cmake argment will be `-DBOOST_ROOT=$(brew --prefix [email protected])`. Try `brew search boost` to see which older versions of boost are available.
192+
193+
#### Using the latest version of boost anyway
194+
189195
If you absolutely need the latest version of boost then the next easiest way to fix this for this project and other projects,
190196
is to edit the file that tells cmake about boost versions:
191197
`C:\Program Files\CMake\share\cmake-3.10\Modules\FindBoost.cmake`.
192198
Scroll down to the section that checks boost versions (search for `if(NOT Boost_VERSION VERSION_LESS `).
193199
In the last version check check in this section, the one with `set(_Boost_IMPORTED_TARGETS FALSE)`,
194200
modify the `if(NOT Boost_VERSION VERSION_LESS <value>)` to be something greater than your boost version.
195201
e.g., If your boost version is 1.66 then make it `106700`.
202+
196203
NOTE: This has worked for me in the past but IS NOT working for Boost 1.66. Something must have changed.

0 commit comments

Comments
 (0)