summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GeneratorExpression/NonValidTarget-TARGET_POLICY.cmake
blob: 55d8a9981ea8c466cf438d2dc8c125090684c413 (plain)
1
2
3
4
add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/copied_file.cpp"
  COMMAND "${CMAKE_COMMAND}" -E copy "${CMAKE_CURRENT_SOURCE_DIR}/empty.cpp" "${CMAKE_CURRENT_BINARY_DIR}/copied_file$<TARGET_POLICY:CMP0004>.cpp"
)
add_custom_target(drive DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/copied_file.cpp")