From 1167360b99d8311688084ec23bf264f6b0e721ab Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 7 Sep 2017 12:05:44 -0400 Subject: Tests: Fix RunCMake.GeneratorExpression to run in CMake 3.9 CMake 3.9 does not have CMP0070, so port away from it for that branch. --- Tests/RunCMake/GeneratorExpression/TARGET_PROPERTY-SOURCES.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/RunCMake/GeneratorExpression/TARGET_PROPERTY-SOURCES.cmake b/Tests/RunCMake/GeneratorExpression/TARGET_PROPERTY-SOURCES.cmake index dee7ead..89993ee 100644 --- a/Tests/RunCMake/GeneratorExpression/TARGET_PROPERTY-SOURCES.cmake +++ b/Tests/RunCMake/GeneratorExpression/TARGET_PROPERTY-SOURCES.cmake @@ -1,5 +1,5 @@ -cmake_policy(SET CMP0070 NEW) enable_language(C) add_library(foo empty.c empty2.c) target_sources(foo PRIVATE empty3.c) -file(GENERATE OUTPUT foo.txt CONTENT "$") +file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/foo.txt + CONTENT "$") -- cgit v0.12