diff options
author | Brad King <brad.king@kitware.com> | 2017-09-07 16:05:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-09-07 16:08:34 (GMT) |
commit | 1167360b99d8311688084ec23bf264f6b0e721ab (patch) | |
tree | 8455caf14647a2d7770fd638db627e1de5364bb7 /Tests | |
parent | 068cc545d905a5b0fd8caa09494c04346d0ca936 (diff) | |
download | CMake-1167360b99d8311688084ec23bf264f6b0e721ab.zip CMake-1167360b99d8311688084ec23bf264f6b0e721ab.tar.gz CMake-1167360b99d8311688084ec23bf264f6b0e721ab.tar.bz2 |
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.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/GeneratorExpression/TARGET_PROPERTY-SOURCES.cmake | 4 |
1 files 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 "$<TARGET_PROPERTY:foo,SOURCES>") +file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/foo.txt + CONTENT "$<TARGET_PROPERTY:foo,SOURCES>") |