Tests: Use newer policy settings in RunCMake.install test

In particular, avoid CMP0042 warnings on OS X.
This commit is contained in:
Brad King 2016-02-05 09:40:13 -05:00
parent a5a5a68572
commit e86383e135
4 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
cmake_policy(VERSION 3.2)
cmake_policy(SET CMP0062 NEW)
add_library(iface INTERFACE)

View File

@ -1,4 +1,4 @@
cmake_policy(VERSION 3.2)
cmake_policy(SET CMP0062 OLD)
add_library(iface INTERFACE)

View File

@ -1,3 +1,4 @@
cmake_policy(VERSION 3.2)
add_library(iface INTERFACE)
export(TARGETS iface FILE "${CMAKE_CURRENT_BINARY_DIR}/exported.cmake")

View File

@ -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)