CMake: Remove cmake_minimum_required from Config

This commit is contained in:
SY Wang 2026-07-11 02:44:13 +08:00 committed by GitHub
parent 113a7dbab1
commit 440cf4f012
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,10 @@
#! SPDX-License-Identifier: GPL-2.0-or-later !
#!-------------------------------------------------------------------------------------------------!
cmake_minimum_required(VERSION 3.22)
if(CMAKE_VERSION VERSION_LESS "3.24")
message(FATAL_ERROR "CP2K requires CMake 3.24 or newer.")
endif()
include(CMakeFindDependencyMacro)
if(NOT TARGET cp2k::cp2k)