diff --git a/cmake/RAPIDS.cmake b/cmake/RAPIDS.cmake index 05627a91f7..96b7f373c3 100644 --- a/cmake/RAPIDS.cmake +++ b/cmake/RAPIDS.cmake @@ -1,6 +1,6 @@ # ============================================================================= # cmake-format: off -# SPDX-FileCopyrightText: Copyright (c) 2021-2025, NVIDIA CORPORATION. +# SPDX-FileCopyrightText: Copyright (c) 2021-2026, NVIDIA CORPORATION. # SPDX-License-Identifier: Apache-2.0 # cmake-format: on # ============================================================================= @@ -8,7 +8,7 @@ # This is the preferred entry point for projects using rapids-cmake # # Enforce the minimum required CMake version for all users -cmake_minimum_required(VERSION 3.30.4 FATAL_ERROR) +cmake_minimum_required(VERSION 4.0 FATAL_ERROR) # Allow users to control which version is used if(NOT (rapids-cmake-branch OR rapids-cmake-version)) diff --git a/conda/environments/all_cuda-129_arch-aarch64.yaml b/conda/environments/all_cuda-129_arch-aarch64.yaml index d09e44d96d..145850d4d8 100644 --- a/conda/environments/all_cuda-129_arch-aarch64.yaml +++ b/conda/environments/all_cuda-129_arch-aarch64.yaml @@ -12,7 +12,7 @@ dependencies: - ccache - clang-tools=20.1.8 - clang==20.1.8 -- cmake>=3.30.4 +- cmake>=4.0 - cpp-argparse - cuda-nvcc - cuda-nvtx-dev diff --git a/conda/environments/all_cuda-129_arch-x86_64.yaml b/conda/environments/all_cuda-129_arch-x86_64.yaml index a90314d16c..293b49fbea 100644 --- a/conda/environments/all_cuda-129_arch-x86_64.yaml +++ b/conda/environments/all_cuda-129_arch-x86_64.yaml @@ -12,7 +12,7 @@ dependencies: - ccache - clang-tools=20.1.8 - clang==20.1.8 -- cmake>=3.30.4 +- cmake>=4.0 - cpp-argparse - cuda-nvcc - cuda-nvtx-dev diff --git a/conda/environments/all_cuda-131_arch-aarch64.yaml b/conda/environments/all_cuda-131_arch-aarch64.yaml index b1acfe1c4c..18ef770844 100644 --- a/conda/environments/all_cuda-131_arch-aarch64.yaml +++ b/conda/environments/all_cuda-131_arch-aarch64.yaml @@ -12,7 +12,7 @@ dependencies: - ccache - clang-tools=20.1.8 - clang==20.1.8 -- cmake>=3.30.4 +- cmake>=4.0 - cpp-argparse - cuda-nvcc - cuda-nvtx-dev diff --git a/conda/environments/all_cuda-131_arch-x86_64.yaml b/conda/environments/all_cuda-131_arch-x86_64.yaml index 3d4d03c85c..02b0af4cac 100644 --- a/conda/environments/all_cuda-131_arch-x86_64.yaml +++ b/conda/environments/all_cuda-131_arch-x86_64.yaml @@ -12,7 +12,7 @@ dependencies: - ccache - clang-tools=20.1.8 - clang==20.1.8 -- cmake>=3.30.4 +- cmake>=4.0 - cpp-argparse - cuda-nvcc - cuda-nvtx-dev diff --git a/conda/recipes/cuopt/conda_build_config.yaml b/conda/recipes/cuopt/conda_build_config.yaml index 4f1ae065c4..a7501ac21b 100644 --- a/conda/recipes/cuopt/conda_build_config.yaml +++ b/conda/recipes/cuopt/conda_build_config.yaml @@ -14,4 +14,4 @@ c_stdlib_version: - "=2.28" cmake_version: - - ">=3.30.4" + - ">=4.0" diff --git a/conda/recipes/libcuopt/conda_build_config.yaml b/conda/recipes/libcuopt/conda_build_config.yaml index 4f1ae065c4..a7501ac21b 100644 --- a/conda/recipes/libcuopt/conda_build_config.yaml +++ b/conda/recipes/libcuopt/conda_build_config.yaml @@ -14,4 +14,4 @@ c_stdlib_version: - "=2.28" cmake_version: - - ">=3.30.4" + - ">=4.0" diff --git a/conda/recipes/mps-parser/conda_build_config.yaml b/conda/recipes/mps-parser/conda_build_config.yaml index bc330ea431..a60dca0786 100644 --- a/conda/recipes/mps-parser/conda_build_config.yaml +++ b/conda/recipes/mps-parser/conda_build_config.yaml @@ -14,4 +14,4 @@ c_stdlib_version: - "=2.28" cmake_version: - - ">=3.30.4" + - ">=4.0" diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 57637bf1e6..6ce751946b 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # cmake-format: on -cmake_minimum_required(VERSION 3.30.4 FATAL_ERROR) +cmake_minimum_required(VERSION 4.0 FATAL_ERROR) # Add our custom Find modules to the module path list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/thirdparty") diff --git a/cpp/libmps_parser/CMakeLists.txt b/cpp/libmps_parser/CMakeLists.txt index cab37741ff..172b419452 100644 --- a/cpp/libmps_parser/CMakeLists.txt +++ b/cpp/libmps_parser/CMakeLists.txt @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # cmake-format: on -cmake_minimum_required(VERSION 3.26.4 FATAL_ERROR) +cmake_minimum_required(VERSION 4.0 FATAL_ERROR) include(../../cmake/rapids_config.cmake) include(rapids-cmake) include(rapids-cpm) diff --git a/dependencies.yaml b/dependencies.yaml index 68afb4f7f5..8e6a62cb3f 100644 --- a/dependencies.yaml +++ b/dependencies.yaml @@ -272,7 +272,7 @@ dependencies: common: - output_types: [conda, requirements, pyproject] packages: - - &cmake_ver cmake>=3.30.4 + - &cmake_ver cmake>=4.0 - &ninja ninja - output_types: conda packages: diff --git a/python/cuopt/CMakeLists.txt b/python/cuopt/CMakeLists.txt index 66bfbd3e16..6d7f1277fc 100644 --- a/python/cuopt/CMakeLists.txt +++ b/python/cuopt/CMakeLists.txt @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # cmake-format: on -cmake_minimum_required(VERSION 3.26.4 FATAL_ERROR) +cmake_minimum_required(VERSION 4.0 FATAL_ERROR) include(../../cmake/rapids_config.cmake) include(rapids-cuda) diff --git a/python/cuopt/cuopt/linear_programming/CMakeLists.txt b/python/cuopt/cuopt/linear_programming/CMakeLists.txt index 84029d2c6e..791a1f2555 100644 --- a/python/cuopt/cuopt/linear_programming/CMakeLists.txt +++ b/python/cuopt/cuopt/linear_programming/CMakeLists.txt @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # cmake-format: on -cmake_minimum_required(VERSION 3.26.4 FATAL_ERROR) +cmake_minimum_required(VERSION 4.0 FATAL_ERROR) include(../../../../cmake/rapids_config.cmake) diff --git a/python/cuopt/cuopt/linear_programming/pyproject.toml b/python/cuopt/cuopt/linear_programming/pyproject.toml index 6e2c59c43c..810997b9d1 100644 --- a/python/cuopt/cuopt/linear_programming/pyproject.toml +++ b/python/cuopt/cuopt/linear_programming/pyproject.toml @@ -72,7 +72,7 @@ commit-files = [ ] disable-cuda = true requires = [ - "cmake>=3.30.4", + "cmake>=4.0", "cython>=3.0.3", "ninja", "numpy>=1.23.5,<3.0", diff --git a/python/cuopt/pyproject.toml b/python/cuopt/pyproject.toml index 18b6e75276..d0b9981f55 100644 --- a/python/cuopt/pyproject.toml +++ b/python/cuopt/pyproject.toml @@ -101,7 +101,7 @@ build-backend = "scikit_build_core.build" dependencies-file = "../../dependencies.yaml" matrix-entry = "cuda_suffixed=true;use_cuda_wheels=true" requires = [ - "cmake>=3.30.4", + "cmake>=4.0", "cuopt-mps-parser==26.6.*,>=0.0.0a0", "cupy-cuda13x>=13.6.0", "cython>=3.0.3", diff --git a/python/libcuopt/CMakeLists.txt b/python/libcuopt/CMakeLists.txt index b524d5f6e3..c31c5847ac 100644 --- a/python/libcuopt/CMakeLists.txt +++ b/python/libcuopt/CMakeLists.txt @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # cmake-format: on -cmake_minimum_required(VERSION 3.30.4 FATAL_ERROR) +cmake_minimum_required(VERSION 4.0 FATAL_ERROR) include(../../cmake/rapids_config.cmake) include(rapids-cuda) diff --git a/python/libcuopt/pyproject.toml b/python/libcuopt/pyproject.toml index 72f0000d04..4571cbcfbc 100644 --- a/python/libcuopt/pyproject.toml +++ b/python/libcuopt/pyproject.toml @@ -76,7 +76,7 @@ build-backend = "scikit_build_core.build" dependencies-file = "../../dependencies.yaml" matrix-entry = "cuda_suffixed=true;use_cuda_wheels=true" requires = [ - "cmake>=3.30.4", + "cmake>=4.0", "cuopt-mps-parser==26.6.*,>=0.0.0a0", "librmm==26.6.*,>=0.0.0a0", "ninja",