diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2021-03-25 13:18:47 -0400 |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2021-03-25 13:18:47 -0400 |
commit | 3b864b2583d977898638336f5a096ff33955bd7a (patch) | |
tree | 52715da1da8654012b8c995416b4b5f543fb8ed0 /Tests/RunCMake/NinjaMultiConfig/LongCommandLine.cmake | |
parent | fef28dbc1e252f5431f3602129a3b3a6cc0ab7bf (diff) | |
download | cmake-3b864b2583d977898638336f5a096ff33955bd7a.tar.gz |
Ninja Multi-Config: Include configs in long CC scripts
Fixes: #21973
Diffstat (limited to 'Tests/RunCMake/NinjaMultiConfig/LongCommandLine.cmake')
-rw-r--r-- | Tests/RunCMake/NinjaMultiConfig/LongCommandLine.cmake | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/RunCMake/NinjaMultiConfig/LongCommandLine.cmake b/Tests/RunCMake/NinjaMultiConfig/LongCommandLine.cmake new file mode 100644 index 0000000000..00aa896af2 --- /dev/null +++ b/Tests/RunCMake/NinjaMultiConfig/LongCommandLine.cmake @@ -0,0 +1,16 @@ +enable_language(C) + +add_executable(generator main.c) + +string(REPEAT "." 5000 very_long) + +add_custom_command( + OUTPUT gen.txt + COMMAND generator "${very_long}" > gen.txt + ) + +add_custom_target( + custom + ALL + DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/gen.txt" + ) |