Skip to content

[CI] Fix broken limesuite build for macOS#1168

Merged
jopohl merged 4 commits intomasterfrom
macosfixci
May 31, 2025
Merged

[CI] Fix broken limesuite build for macOS#1168
jopohl merged 4 commits intomasterfrom
macosfixci

Conversation

@jopohl
Copy link
Owner

@jopohl jopohl commented May 31, 2025

Building Limesuite on macOS currently fails with

Last 15 lines from /Users/runner/Library/Logs/Homebrew/limesuite/01.cmake:
-Wno-dev
-DBUILD_TESTING=OFF
-DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk

CMake Error at CMakeLists.txt:4 (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.

Unfortunately, homebrew does not respect CMAKE_POLICY_VERSION_MINIMUM=3.5 when set via environment variable and there seems to be no way to specify cmake flags directly with for homebrew.

Therefore, we now switch to the limesuite version from the default homebrew repo. However, this version is way more recent than the other one so API incompatibilities are possible. Tests are passing though, that's a good sign.

@jopohl jopohl merged commit 1e9416f into master May 31, 2025
10 checks passed
@jopohl jopohl deleted the macosfixci branch May 31, 2025 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant