[MacPorts] #71871: cmake can't find boost
MacPorts
noreply at macports.org
Sat Jan 18 23:39:28 UTC 2025
#71871: cmake can't find boost
-----------------------+--------------------
Reporter: dershow | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: boost181 |
-----------------------+--------------------
Comment (by mascguy):
As of this writing, boost176 and later include cmake files. However, as
Ryan mentioned, they're all segregated to avoid conflicts.
If you were having this issue with a particular port, the fix would depend
on the project. For cmake-based builds, the following would usually
suffice:
{{{
# Ensure CMake can find the selected boost port
# TODO: Do this automatically via Boost portgroup
cmake.module_path-append \
[boost::lib_dir]/cmake
}}}
For your case, you should be able to add this arg to `cmake`:
{{{
-DCMAKE_PREFIX_PATH="/opt/local/share/cmake/Modules;/opt/local/libexec/boost/1.76/lib/cmake"
}}}
--
Ticket URL: <https://trac.macports.org/ticket/71871#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list