Other build issues on macOS with clang 17.0.0: issue #2

25 views
Skip to first unread message

Marc Culler

unread,
Jul 23, 2025, 12:28:28 PMJul 23
to sage-release
2. CMake version 4 is no longer compatible with CMake versions < 3.5.  But the current version on homebrew is 4.0.2.  Sage's CMake is version 3.13.2 so this issue does not ariise if Sage's cmake spkg is used.  But Sage bends over backwards to use whatever libraries are available on the build system.  Surely this should apply to build tools as well.

Fortunately, the only spkg that I had to patch to accommodate CMake 4 was qhull.  The following patch which just changes the cmake_minimum_required argument, fixes it:

*** src/CMakeLists.txt.orig Thu May  8 13:21:24 2025
--- src/CMakeLists.txt Thu May  8 13:25:39 2025
***************
*** 67,74 ****
  # $Id: //main/2019/qhull/CMakeLists.txt#21 $$Change: 3039 $
  # $DateTime: 2020/09/03 21:26:22 $$Author: bbarber $
 
  project(qhull)
- cmake_minimum_required(VERSION 3.0)
 
  # Define qhull_VERSION in README.txt, Announce.txt, qh-get.htm, CMakeLists.txt
  #   qhull-zip.sh (twice), qhull-wiki.md, qhull-news.htm, File_id.diz, index.htm
--- 67,75 ----
  # $Id: //main/2019/qhull/CMakeLists.txt#21 $$Change: 3039 $
  # $DateTime: 2020/09/03 21:26:22 $$Author: bbarber $
 
+ cmake_minimum_required(VERSION 4.0)
+
  project(qhull)


Reply all
Reply to author
Forward
0 new messages