Skip to content

fix: Fix the libqrencode build under MacOS 10.15#200

Draft
nickolay168 wants to merge 1 commit intoTokTok:masterfrom
nickolay168:nickolay168/fix_mac_build
Draft

fix: Fix the libqrencode build under MacOS 10.15#200
nickolay168 wants to merge 1 commit intoTokTok:masterfrom
nickolay168:nickolay168/fix_mac_build

Conversation

@nickolay168
Copy link
Copy Markdown
Contributor

@nickolay168 nickolay168 commented Mar 30, 2026

In MacOS 10.15 I have stareted seeing the CI failures as follows:

cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/Users/runner/work/deps -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DWITH_TOOLS=OFF -DBUILD_SHARED_LIBS=OFF
CMake Error at CMakeLists.txt:1 (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.


-- Configuring incomplete, errors occurred!

It is caused by this line in the libqrencode CmakeLists.txt. I have added -DCMAKE_POLICY_VERSION_MINIMUM=3.5 flag to redefine the minimal Cmake version.


This change is Reviewable

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 30, 2026

Tip

Preview URL:

@github-actions github-actions bot added the bug Bug fix for the user, not a fix to a build script label Mar 30, 2026
@nickolay168 nickolay168 force-pushed the nickolay168/fix_mac_build branch from 79f5cc5 to 6e06038 Compare April 4, 2026 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bug fix for the user, not a fix to a build script

Development

Successfully merging this pull request may close these issues.

1 participant