Commit c985c974 authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'googletest_policy_settings'

7ddc2a11

 GoogleTest: Ensure policy settings allow use of IN_LIST
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !2237
parents 4687de32 7ddc2a11
Pipeline #110353 passed with stage
in 0 seconds
......@@ -238,6 +238,10 @@ 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
#------------------------------------------------------------------------------
function(gtest_add_tests)
......@@ -454,3 +458,6 @@ endfunction()
set(_GOOGLETEST_DISCOVER_TESTS_SCRIPT
${CMAKE_CURRENT_LIST_DIR}/GoogleTestAddTests.cmake
)
# Restore project's policies
cmake_policy(POP)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment