Skip to content

Commit cf91152

Browse files
committed
build: update cmake_minimum_required to 3.10
Compatibility with versions older than 3.5 has been deprecated since cmake 3.27 and has now been removed with cmake 4.0. Compatibility with versions before 3.10 has been deprecated since cmake 3.31. This changes the requirement to 3.10 to allow this project to still be built with cmake 4.0 without any deprecation warning.
1 parent 4a1002e commit cf91152

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
15+
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
1616
# We use the GoogleTest module if it is available (only in CMake 3.9+)
1717
# It requires CMP0054 and CMP0057 to be enabled.
1818
if (POLICY CMP0054)

CMakeListsForBuck2.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
15+
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
1616
# We use the GoogleTest module if it is available (only in CMake 3.9+)
1717
# It requires CMP0054 and CMP0057 to be enabled.
1818
if (POLICY CMP0054)

0 commit comments

Comments
 (0)