Skip to content

update cmake#1

Merged
k-ido merged 3 commits intodev-cgfrom
develop
Nov 4, 2025
Merged

update cmake#1
k-ido merged 3 commits intodev-cgfrom
develop

Conversation

@k-ido
Copy link
Copy Markdown
Owner

@k-ido k-ido commented Nov 4, 2025

This pull request updates CI workflows and modernizes CMake configuration across the project to improve compatibility and maintainability. The changes focus on updating build environments, refining CMake policies and minimum version requirements, and cleaning up legacy code in CMake files.

CI Workflow Updates:

  • Updated the runner for documentation deployment to use ubuntu-latest instead of the older ubuntu-20.04 in .github/workflows/deploy_docs.yml.
  • Simplified the OS matrix for the main workflow by replacing specific Ubuntu versions with ubuntu-latest and removing ubuntu-22.04 and ubuntu-20.04 from .github/workflows/main.yml.

CMake Modernization and Cleanup:

  • Set the CMake minimum required version to 3.5...3.10 and introduced CMAKE_POLICY_VERSION_MINIMUM 3.10 in the top-level CMakeLists.txt to ensure compatibility with newer CMake features.
  • Removed legacy cmake_minimum_required(VERSION 2.8.0 ) lines from all submodule CMakeLists.txt files (src/ComplexUHF/CMakeLists.txt, src/ltl2inv/CMakeLists.txt, src/mVMC/CMakeLists.txt, src/pfupdates/CMakeLists.txt, tool/CMakeLists.txt) for consistency and to avoid redundant version checks. [1] [2] [3] [4] [5]

Python Test Configuration:

  • Added a CMake policy setting (CMP0148) to suppress warnings about the deprecated PythonInterp package in test/python/CMakeLists.txt, with a note to migrate to find_package(Python3 REQUIRED) in the future.

@k-ido k-ido merged commit 8d27759 into dev-cg Nov 4, 2025
0 of 2 checks passed
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