镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

CMakeLists.txt: increase cmake_minimum_required version - #33

Open
jmillan wants to merge 2 commits into
ibc:masterfrom
jmillan:cmake_minimum_required
Open

jmillan wants to merge 2 commits into
ibc:masterfrom
jmillan:cmake_minimum_required

Conversation

@jmillan

@jmillan jmillan commented Nov 14, 2025 •

Copy link
Copy Markdown

Compatibility with CMake < 3.5 has been removed from CMake.

This would require a new libsdptransform version. Dependant projects are now forced to use the flag:
-DCMAKE_POLICY_VERSION_MINIMUM=3.5:

This is the error given by CMake when trying to build the project:

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.

Compatibility with CMake < 3.5 has been removed from CMake.
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.

2 participants