diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2021-04-30 14:45:19 -0400 |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2021-04-30 14:46:21 -0400 |
commit | ad08f93ee40a1cc855c403c1cc738237511224e3 (patch) | |
tree | db5dfa5149698d1001b1fd3de65d4ffe15439f83 /Tests/RunCMake/NinjaMultiConfig/LongCommandLine.cmake | |
parent | 1ad4501ae97fb6c6deab096ff0ac7e03d554e26d (diff) | |
download | cmake-ad08f93ee40a1cc855c403c1cc738237511224e3.tar.gz |
Ninja Multi-Config: Split long command lines by config
Fixes: #22123
Diffstat (limited to 'Tests/RunCMake/NinjaMultiConfig/LongCommandLine.cmake')
-rw-r--r-- | Tests/RunCMake/NinjaMultiConfig/LongCommandLine.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/NinjaMultiConfig/LongCommandLine.cmake b/Tests/RunCMake/NinjaMultiConfig/LongCommandLine.cmake index 00aa896af2..de528be466 100644 --- a/Tests/RunCMake/NinjaMultiConfig/LongCommandLine.cmake +++ b/Tests/RunCMake/NinjaMultiConfig/LongCommandLine.cmake @@ -14,3 +14,10 @@ add_custom_target( ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/gen.txt" ) + +add_executable(exe main.c) + +add_custom_command( + TARGET exe POST_BUILD + COMMAND ${CMAKE_COMMAND} -E echo "Post-build $<CONFIG> $<COMMAND_CONFIG:$<CONFIG>> ${very_long}" + ) |