Kaynağa Gözat

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
Brad King 4 yıl önce
ebeveyn
işleme
078ba4b2a4
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      Tests/SwiftOnly/CMakeLists.txt

+ 3 - 0
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.