From 078ba4b2a47bee6575497b29c98fbbc4dc7d4dc8 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 21 Jul 2021 10:44:15 -0400 Subject: Swift: Update test case to try CMP0126 NEW behavior Extend the `SwiftOnly` test to cover the fix in commit 3ddd7f3576 (enable_language: Fix test for working compiler with CMP0126 NEW behavior, 2021-07-15), as that commit did for the `CSharpOnly` test. Fixes: #22451 --- Tests/SwiftOnly/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tests/SwiftOnly/CMakeLists.txt b/Tests/SwiftOnly/CMakeLists.txt index 41d14ea..01c2222 100644 --- a/Tests/SwiftOnly/CMakeLists.txt +++ b/Tests/SwiftOnly/CMakeLists.txt @@ -1,4 +1,7 @@ cmake_minimum_required(VERSION 3.3) +if(POLICY CMP0126) + cmake_policy(SET CMP0126 NEW) +endif() # NOTE: Force the Release mode configuration as there are some issues with the # debug information handling on macOS on certain Xcode builds. -- cgit v0.12