[MacPorts] #71642: cadabra2: cmake can't find boost (was: cadabra2: cmake @3.31.2 can't find boost)

MacPorts noreply at macports.org
Sun Dec 29 20:56:59 UTC 2024


#71642: cadabra2: cmake can't find boost
--------------------------+----------------------
  Reporter:  Schamschula  |      Owner:  mascguy
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  cadabra2     |
--------------------------+----------------------
Changes (by mascguy):

 * owner:  michaelld => mascguy
 * cc: mascguy (removed)
 * cc: michaelld (added)
 * port:  cmake, cmake-devel, cadabra2 => cadabra2


Comment:

 This is bug in upstream's CMake project. I've provided the details in the
 issue you submitted (https://github.com/kpeeters/cadabra2/issues/331), and
 copied here for completeness:

 Per the output from `cmake --help-module FindBoost`, the problem appears
 to be twofold:

 {{{
 FindBoost
 ---------

   This module is available only if policy ``CMP0167`` is not set to
   ``NEW``.  Port projects to upstream Boost's ``BoostConfig.cmake``
 package
   configuration file, for which ``find_package(Boost)`` now searches.
 }}}

 In short:
 * The project is setting `CMP0167` to `NEW`, which prevents use of
 `FindBoost`
 * The project is still referencing `FindBoost`, when it needs to be
 changed to `BoostConfig`

-- 
Ticket URL: <https://trac.macports.org/ticket/71642#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list