[MacPorts] #72350: json-c 0.18.0 fails to build with cmake 3.5 mismatch

MacPorts noreply at macports.org
Mon Apr 14 11:12:07 UTC 2025


#72350: json-c 0.18.0 fails to build with cmake 3.5 mismatch
----------------------+--------------------
 Reporter:  rmottola  |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:
 Keywords:            |       Port:
----------------------+--------------------
 Building on Leopard x86_64 I get:

 {{{

 CMake Error at apps/CMakeLists.txt:2 (cmake_minimum_required):
   Compatibility with CMake < 3.5 has been removed from CMake.

   Update the VERSION argument <min> value.  Or, use the <min>...<max>
 syntax
   to tell CMake that the project requires at least <min> but has been
 updated
   to work with policies introduced by <max> or earlier.

   Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
 }}}



 But:

 The following ports are currently installed:
   cmake @3.15.0_0
   cmake @3.15.2_0
   cmake @3.15.3_0
   cmake @3.15.5_0
   cmake @3.16.5_0
   cmake @3.17.0_0
   cmake @3.18.3_0
   cmake @3.19.1_0
   cmake @3.19.6_0
   cmake @3.21.2_0
   cmake @3.23.4_0
   cmake @3.23.5_0
   cmake @3.24.3_0
   cmake @3.24.4_0

 However:

 Artax:~ multix$ which cmake
 /opt/local/bin/cmake
 Artax:~ multix$ cmake --version
 cmake version 4.0.0


 I'd expected 3.24 here

-- 
Ticket URL: <https://trac.macports.org/ticket/72350>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list