Merge pull request #17448 from alebcay/cmake-fix-min-version-fetchcontent

cmake: don't set cmake_minimum_required
This commit is contained in:
Bo Anderson 2024-06-07 18:40:27 +01:00 committed by GitHub
commit 633b46a7c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,6 @@
cmake_minimum_required(VERSION 3.24) # Dependency providers introduced in CMake 3.24 # Dependency providers were introduced in CMake 3.24. We don't set cmake_minimum_required here because that would
# propagate to downstream projects, which may break projects that rely on deprecated CMake behavior. Since the build
# is using brewed CMake, we can assume that the CMake version in use is at least 3.24.
option(HOMEBREW_ALLOW_FETCHCONTENT "Allow FetchContent to be used in Homebrew builds" OFF) option(HOMEBREW_ALLOW_FETCHCONTENT "Allow FetchContent to be used in Homebrew builds" OFF)