Commit 1167360b authored by Brad King's avatar Brad King
Browse files

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.
parent 068cc545
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>")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment