[MacPorts] #64757: How to enable Cmake to find Boost?

MacPorts noreply at macports.org
Thu Mar 3 14:14:04 UTC 2022


#64757: How to enable Cmake to find Boost?
---------------------------+---------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  request       |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:  powerpc
      Port:  cmake         |
---------------------------+---------------------

Comment (by reneeotten):

 Replying to [comment:3 barracuda156]:
 > Replying to [comment:1 reneeotten]:
 > > Are you using the `boost` PortGroup already, if not I would to that
 first as there is some code in there already to setup things correctly.
 >
 > As an odd effect on 10.5.8, while I specifically have `boost176` in port
 file (and `boost176` is already built even), when I try install my port,
 Macports insists on installing `boost171` instead.
 >
 > This did not occur on 10.6 PPC, where `boost176` was used, as supposed.


 not all that surprising if you take a look at the code in the `boost` PG:
 {{{
 proc boost::default_version {} {
     global os.platform os.major
     # Pin version on Darwin9 and older to pre-c++11 version (1.71)
     if { ${os.platform} eq "darwin" && ${os.major} <= 9 } {
         return 1.71
     } else {
         return 1.76
     }
 }
 }}}

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


More information about the macports-tickets mailing list