[MacPorts] #65308: cpptoml: builds failing for 10.13 and earlier: cmake cannot find libcxx

MacPorts noreply at macports.org
Wed Jun 8 17:42:49 UTC 2022


#65308: cpptoml: builds failing for 10.13 and earlier: cmake cannot find libcxx
----------------------+----------------------
  Reporter:  mascguy  |      Owner:  mascguy
      Type:  defect   |     Status:  assigned
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.7.2
Resolution:           |   Keywords:
      Port:  cpptoml  |
----------------------+----------------------

Comment (by mascguy):

 It looks like this port is using the project's default behavior, which
 includes building examples. But those aren't provided by the port anyway,
 so that phase can be disabled.

 Meanwhile, based on comparing our current published binaries, the port
 simply provides architecture-independent components:

 {{{
 $ port contents cpptoml
   /opt/local/include/cpptoml.h
   /opt/local/lib/cmake/cpptoml/cpptomlConfig.cmake
   /opt/local/lib/cmake/cpptoml/cpptomlConfigVersion.cmake
   /opt/local/lib/cmake/cpptoml/cpptomlTargets.cmake
 }}}

 Based on initial testing on 10.12, we can provide the following two flags
 to CMake, to completely eliminate the need for compilation (and libcxx):

 {{{
 -DENABLE_LIBCXX:BOOL=OFF \
 -DCPPTOML_BUILD_EXAMPLES:BOOL=OFF
 }}}

 That also allows us to remove the dependency on Boost, and simplify the
 portfile.

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


More information about the macports-tickets mailing list