mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-14 21:41:06 -05:00
GoogleTest: Modernize policies using block() / endblock()
This commit is contained in:
@@ -286,8 +286,8 @@ same as the Google Test name (i.e. ``suite.testcase``); see also
|
||||
#]=======================================================================]
|
||||
|
||||
# Save project's policies
|
||||
cmake_policy(PUSH)
|
||||
cmake_policy(SET CMP0057 NEW) # if IN_LIST
|
||||
block(SCOPE_FOR POLICIES)
|
||||
cmake_policy(VERSION 3.30)
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
function(gtest_add_tests)
|
||||
@@ -630,4 +630,4 @@ endfunction()
|
||||
###############################################################################
|
||||
|
||||
# Restore project's policies
|
||||
cmake_policy(POP)
|
||||
endblock()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
cmake_minimum_required(VERSION ${CMAKE_VERSION})
|
||||
cmake_minimum_required(VERSION 3.30)
|
||||
|
||||
# Overwrite possibly existing ${_CTEST_FILE} with empty file
|
||||
set(flush_tests_MODE WRITE)
|
||||
|
||||
Reference in New Issue
Block a user