diff options
author | Brad King <brad.king@kitware.com> | 2021-04-26 15:25:38 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-04-26 15:25:46 (GMT) |
commit | 71087120b9ee7e3f3372cc87f08e2da608c1fd11 (patch) | |
tree | 19e23c25545d1496a4dbcc29f5fa762d47fe36b3 /Tests/RunCMake/NinjaMultiConfig/CustomCommandOutputGenex.cmake | |
parent | dd44a98bfe2c5dc79cb3058cd222835023b80dfd (diff) | |
parent | f8e2a74712c01f205c794102dd0151feace7a5df (diff) | |
download | CMake-71087120b9ee7e3f3372cc87f08e2da608c1fd11.zip CMake-71087120b9ee7e3f3372cc87f08e2da608c1fd11.tar.gz CMake-71087120b9ee7e3f3372cc87f08e2da608c1fd11.tar.bz2 |
Merge topic 'ninja-multi-custom-target-post-build' into release-3.20
f8e2a74712 Ninja Multi-Config: Correctly generate POST_BUILD custom targets
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6040
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" + ) |