Tests: Use newer policy settings in RunCMake.install test
In particular, avoid CMP0042 warnings on OS X.
This commit is contained in:
parent
a5a5a68572
commit
e86383e135
|
@ -1,4 +1,4 @@
|
|||
|
||||
cmake_policy(VERSION 3.2)
|
||||
cmake_policy(SET CMP0062 NEW)
|
||||
|
||||
add_library(iface INTERFACE)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
cmake_policy(VERSION 3.2)
|
||||
cmake_policy(SET CMP0062 OLD)
|
||||
|
||||
add_library(iface INTERFACE)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
cmake_policy(VERSION 3.2)
|
||||
|
||||
add_library(iface INTERFACE)
|
||||
export(TARGETS iface FILE "${CMAKE_CURRENT_BINARY_DIR}/exported.cmake")
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue