diff --git a/Modules/GoogleTest.cmake b/Modules/GoogleTest.cmake index 2fded3f2f7..5f4eaf84e9 100644 --- a/Modules/GoogleTest.cmake +++ b/Modules/GoogleTest.cmake @@ -332,7 +332,7 @@ same as the Google Test name (i.e. ``suite.testcase``); see also # Save project's policies block(SCOPE_FOR POLICIES) -cmake_policy(VERSION 3.30) +cmake_policy(VERSION 4.2) #------------------------------------------------------------------------------ function(gtest_add_tests) diff --git a/Modules/GoogleTestAddTests.cmake b/Modules/GoogleTestAddTests.cmake index 1ef3d6d546..957d7b4f93 100644 --- a/Modules/GoogleTestAddTests.cmake +++ b/Modules/GoogleTestAddTests.cmake @@ -1,8 +1,7 @@ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying # file LICENSE.rst or https://cmake.org/licensing for details. -cmake_minimum_required(VERSION 3.30) -cmake_policy(SET CMP0174 NEW) # TODO: Remove this when we can update the above to 3.31 +cmake_minimum_required(VERSION 4.2) function(add_command name test_name) set(args "")