diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2021-04-22 19:51:53 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2021-04-22 19:51:53 (GMT) |
commit | f8e2a74712c01f205c794102dd0151feace7a5df (patch) | |
tree | 7df14d43e5715647cf60bbfd2f7afafe30f9d800 /Tests/RunCMake/NinjaMultiConfig/CustomCommandOutputGenex.cmake | |
parent | b0f203f133ab3f4af1a00ad556de34c9b0db8c91 (diff) | |
download | CMake-f8e2a74712c01f205c794102dd0151feace7a5df.zip CMake-f8e2a74712c01f205c794102dd0151feace7a5df.tar.gz CMake-f8e2a74712c01f205c794102dd0151feace7a5df.tar.bz2 |
Ninja Multi-Config: Correctly generate POST_BUILD custom targets
Fixes: #22096
Diffstat (limited to 'Tests/RunCMake/NinjaMultiConfig/CustomCommandOutputGenex.cmake')
-rw-r--r-- | Tests/RunCMake/NinjaMultiConfig/CustomCommandOutputGenex.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/NinjaMultiConfig/CustomCommandOutputGenex.cmake b/Tests/RunCMake/NinjaMultiConfig/CustomCommandOutputGenex.cmake index e49cc32..bb68a50 100644 --- a/Tests/RunCMake/NinjaMultiConfig/CustomCommandOutputGenex.cmake +++ b/Tests/RunCMake/NinjaMultiConfig/CustomCommandOutputGenex.cmake @@ -189,3 +189,11 @@ add_custom_target(target_no_cross_byproduct COMMAND echo $<CONFIG> target_no_cross_byproduct.txt WORKING_DIRECTORY $<CONFIG> ) + +add_custom_target(target_post_build + COMMENT target_post_build + COMMAND ${CMAKE_COMMAND} -E echo "target main build" + ) +add_custom_command(TARGET target_post_build POST_BUILD + COMMAND ${CMAKE_COMMAND} -E echo "target post build" + ) |