diff options
author | Brad King <brad.king@kitware.com> | 2016-02-05 09:40:13 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-02-05 09:44:26 -0500 |
commit | e86383e135e4cae9d54575445d945df1f6272b3a (patch) | |
tree | cd82bc7099b0295e968e8dba337625a4a071ad1c | |
parent | a5a5a6857241c21d306661d723b749839f4c6e1a (diff) | |
download | cmake-e86383e135e4cae9d54575445d945df1f6272b3a.tar.gz |
Tests: Use newer policy settings in RunCMake.install test
In particular, avoid CMP0042 warnings on OS X.
-rw-r--r-- | Tests/RunCMake/install/CMP0062-NEW.cmake | 2 | ||||
-rw-r--r-- | Tests/RunCMake/install/CMP0062-OLD.cmake | 2 | ||||
-rw-r--r-- | Tests/RunCMake/install/CMP0062-WARN.cmake | 1 | ||||
-rw-r--r-- | Tests/RunCMake/install/CMakeLists.txt | 2 |
4 files changed, 4 insertions, 3 deletions
diff --git a/Tests/RunCMake/install/CMP0062-NEW.cmake b/Tests/RunCMake/install/CMP0062-NEW.cmake index a696f56fc5..9e7a5fb82f 100644 --- a/Tests/RunCMake/install/CMP0062-NEW.cmake +++ b/Tests/RunCMake/install/CMP0062-NEW.cmake @@ -1,4 +1,4 @@ - +cmake_policy(VERSION 3.2) cmake_policy(SET CMP0062 NEW) add_library(iface INTERFACE) diff --git a/Tests/RunCMake/install/CMP0062-OLD.cmake b/Tests/RunCMake/install/CMP0062-OLD.cmake index 94b809a981..8874923b4c 100644 --- a/Tests/RunCMake/install/CMP0062-OLD.cmake +++ b/Tests/RunCMake/install/CMP0062-OLD.cmake @@ -1,4 +1,4 @@ - +cmake_policy(VERSION 3.2) cmake_policy(SET CMP0062 OLD) add_library(iface INTERFACE) diff --git a/Tests/RunCMake/install/CMP0062-WARN.cmake b/Tests/RunCMake/install/CMP0062-WARN.cmake index 0435a640ef..018f82275a 100644 --- a/Tests/RunCMake/install/CMP0062-WARN.cmake +++ b/Tests/RunCMake/install/CMP0062-WARN.cmake @@ -1,3 +1,4 @@ +cmake_policy(VERSION 3.2) add_library(iface INTERFACE) export(TARGETS iface FILE "${CMAKE_CURRENT_BINARY_DIR}/exported.cmake") diff --git a/Tests/RunCMake/install/CMakeLists.txt b/Tests/RunCMake/install/CMakeLists.txt index 4b3de84d94..6dd8cdf551 100644 --- a/Tests/RunCMake/install/CMakeLists.txt +++ b/Tests/RunCMake/install/CMakeLists.txt @@ -1,3 +1,3 @@ -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 3.4) project(${RunCMake_TEST} NONE) include(${RunCMake_TEST}.cmake) |