CustomCommand
command_line: D:\a\nightly-builds\nightly-builds\build\bin\ctest.exe "--build-and-test" "D:/a/nightly-builds/nightly-builds/Tests/CustomCommand" "D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand" "--build-two-config" "--build-generator" "Ninja" "--build-makeprogram" "C:/ProgramData/chocolatey/bin/ninja.exe" "--build-project" "CustomCommand" "--build-exe-dir" "D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand/bin" "--build-options" "--test-command" "CustomCommand"
working_directory: "./Tests"
Processors: 1
Execution Time: 14.067
Completion Status: Completed
Environment: #CTEST_RESOURCE_GROUP_COUNT=
Exit Value: 1
Exit Code: Failed
stdout:
Internal cmake changing into directory: D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand
======== CMake output ======
The C compiler identification is MSVC 19.43.34808.0
The CXX compiler identification is MSVC 19.43.34808.0
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.43.34808/bin/Hostx64/x64/cl.exe - skipped
Detecting C compile features
Detecting C compile features - done
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.43.34808/bin/Hostx64/x64/cl.exe - skipped
Detecting CXX compile features
Detecting CXX compile features - done
Configuring done (4.7s)
Generating done (0.6s)
Build files have been written to: D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand
Configuring done (0.7s)
Generating done (1.2s)
Build files have been written to: D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand
======== End CMake output ======
Change Dir: 'D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand'
Run Clean Command: C:/ProgramData/chocolatey/bin/ninja.exe clean
[1/1] Cleaning all built files...
Cleaning... 0 files.
Run Build Command(s): C:/ProgramData/chocolatey/bin/ninja.exe
[1/75] Generating doc1.dvi
[2/75] Building CXX object CMakeFiles\wrapper.dir\wrapper.cxx.obj
D:\a\nightly-builds\nightly-builds\Tests\CustomCommand\wrapper.cxx(10): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\a\nightly-builds\nightly-builds\Tests\CustomCommand\wrapper.cxx(14): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
[3/75] Building CXX object CMakeFiles\tcat.dir\tcat.cxx.obj
[4/75] Generating generated.h
[5/75] Building CXX object CMakeFiles\generator.dir\generator.cxx.obj
D:\a\nightly-builds\nightly-builds\Tests\CustomCommand\generator.cxx(9): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
[6/75] Generating doc1.txt
[7/75] Building CXX object GeneratedHeader\CMakeFiles\GeneratedHeader.dir\main.cpp.obj
[8/75] Building C object CMakeFiles\check_command_line.dir\check_command_line.c.obj
[9/75] Linking CXX static library bin\GeneratedHeader.lib
[10/75] Building CXX object GeneratorInExtraDir\CMakeFiles\dummy_generator.dir\__\generator.cxx.obj
D:\a\nightly-builds\nightly-builds\Tests\CustomCommand\generator.cxx(9): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
[11/75] Building CXX object GeneratorInExtraDir\CMakeFiles\generator_extern.dir\__\generator.cxx.obj
D:\a\nightly-builds\nightly-builds\Tests\CustomCommand\generator.cxx(9): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
[12/75] Building C object PerConfig\CMakeFiles\pcStatic.dir\pcStatic.c.obj
[13/75] Building C object PerConfig\CMakeFiles\pcShared.dir\pcShared.c.obj
[14/75] Linking CXX executable bin\wrapper.exe
[15/75] Linking CXX executable bin\generator.exe
[16/75] Linking CXX executable bin\tcat.exe
[17/75] C:\Windows\system32\cmd.exe /C "cd /D D:\a\nightly-builds\nightly-builds\build\Tests\CustomCommand && "D:/a/nightly-builds/nightly-builds/build/bin/ctest.exe" --instrument --command-type custom --target-name TARGET_NAME --build-dir "D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand" --output "CMakeFiles\pre_check_command_line" --role -- D:\a\nightly-builds\nightly-builds\build\bin\cmake.exe -E rm -f D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand/check_mark.txt"
[18/75] Generating foo/bar
[19/75] Generating doc1.h
Copying doc1.dvi to doc1temp.h.
Copying doc1temp.h to doc1.h.
Removing doc1temp.h.
[20/75] Linking C static library bin\pcStatic-dbg.lib
[21/75] Building C object PerConfig\CMakeFiles\perconfig.dir\perconfig.c.obj
[22/75] Building C object CMakeFiles\mac_fw.dir\mac_fw.c.obj
[23/75] Running top-level TDocument commands
Copying doc1.h to doc2.h.
[24/75] Linking C executable bin\check_command_line.exe
[25/75] Linking CXX executable bin\the_external_generator.exe
[26/75] Linking CXX executable bin\dummy_generator.exe
[27/75] Generating foo/foo.cxx
[28/75] Generating foo/bar/bar.cxx
[29/75] Linking C shared library bin\pcShared-dbg.dll
[30/75] Generating generated_extern.cxx
[31/75] Building CXX object CMakeFiles\NormDepends.dir\foo\bar\bar.cxx.obj
[32/75] Checking custom command line escapes (single'quote)
Command line escapes work!
[33/75] Building CXX object CMakeFiles\NormOutput.dir\foo\foo.cxx.obj
[34/75] Building CXX object CMakeFiles\CustomCommandUsingTargetTest.dir\generated_extern.cxx.obj
[35/75] Building CXX object CMakeFiles\empty_command.dir\empty_command.cxx.obj
[36/75] Building CXX object CMakeFiles\CustomCommandUsingTargetTest.dir\main.cxx.obj
[37/75] Running TDocument pre-build commands; Running TDocument post-build commands
Writing doc1pre.txt.
Copying doc1pre.txt to doc2post.txt.
[38/75] Generating depended_upon_path.txt
[39/75] Checking custom target command line escapes ($dollar-signs$)
Checking custom target command escapes
Command line escapes work!
[40/75] Generating foo.pre
[41/75] Generating subdir/subdir.h
[42/75] Generating foo.c
[43/75] Generating foo.h
Copying foo.h.in to foo.h.
[44/75] Linking C executable bin\perconfig-dbg.exe
[45/75] Generating wrapped.c, wrapped_help.c
[46/75] Generating generated.c
[47/75] Generating not_included.h
[48/75] Linking C shared library bin\mac_fw.dll
[49/75] Checking custom target POST_BUILD command line escapes ($dollar-signs$)
POST_BUILD command with $dollar-signs$
[50/75] Linking CXX executable bin\CustomCommandUsingTargetTest.exe
[51/75] Linking CXX static library bin\NormOutput.lib
[52/75] Generating perconfig.out
-- configuration=Debug
-- perconfig_file_dir=D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand/bin
-- perconfig_file_name=perconfig-dbg.exe
-- perconfig_file=D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand/bin/perconfig-dbg.exe
-- pcStatic_file=D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand/bin/pcStatic-dbg.lib
-- pcStatic_linker_file=D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand/bin/pcStatic-dbg.lib
-- pcShared_file=D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand/bin/pcShared-dbg.dll
-- pcShared_linker_file=D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand/bin/pcShared-dbg.lib
-- pcShared_soname_file=
[53/75] Generating gen_redirect.c
[54/75] Linking CXX static library bin\NormDepends.lib
[55/75] Building C object CMakeFiles\CustomCommand.dir\foo.c.obj
[56/75] Generating SameName1.txt
[57/75] Building C object CMakeFiles\CustomCommand.dir\wrapped.c.obj
[58/75] Running TDocument post-build dependent custom command
Copying doc2pre.txt to doc3post.txt.
[59/75] Building C object CMakeFiles\CustomCommand.dir\wrapped_help.c.obj
[59/75] C:\Windows\system32\cmd.exe /C "cd /D D:\a\nightly-builds\nightly-builds\build\Tests\CustomCommand && "D:/a/nightly-builds/nightly-builds/build/bin/ctest.exe" --instrument --command-type custom --target-name TARGET_NAME --build-dir "D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand" --output "CMakeFiles\UseConsoleTarget" --role -- D:\a\nightly-builds\nightly-builds\build\bin\cmake.exe -E echo "Custom console target.""
Custom console target.
[62/75] Building C object CMakeFiles\CustomCommand.dir\gen_redirect.c.obj
FAILED: CMakeFiles/CustomCommand.dir/gen_redirect.c.obj
"D:/a/nightly-builds/nightly-builds/build/bin/ctest.exe" --instrument --command-type compile --target-name CustomCommand --build-dir "D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand" --config Debug --output CMakeFiles\CustomCommand.dir\gen_redirect.c.obj --source D:\a\nightly-builds\nightly-builds\build\Tests\CustomCommand\gen_redirect.c --language C -- C:\PROGRA~1\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1443~1.348\bin\Hostx64\x64\cl.exe /nologo -ID:\a\nightly-builds\nightly-builds\build\Tests\CustomCommand /DWIN32 /D_WINDOWS /W3 /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\CustomCommand.dir\gen_redirect.c.obj /FdCMakeFiles\CustomCommand.dir\ /FS -c D:\a\nightly-builds\nightly-builds\build\Tests\CustomCommand\gen_redirect.c
D:\a\nightly-builds\nightly-builds\build\Tests\CustomCommand\gen_redirect.c(1): fatal error C1020: unexpected #endif
[63/75] C:\Windows\system32\cmd.exe /C "cd /D D:\a\nightly-builds\nightly-builds\build\Tests\CustomCommand && "D:/a/nightly-builds/nightly-builds/build/bin/ctest.exe" --instrument --command-type custom --target-name TARGET_NAME --build-dir "D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand" --output "CMakeFiles\perconfig_target" --role -- D:\a\nightly-builds\nightly-builds\build\bin\cmake.exe -E echo perconfig=D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand/bin/perconfig-dbg.exe config=Debug"
perconfig=D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand/bin/perconfig-dbg.exe config=Debug
[65/75] Generating expand_custom_command.phony
[67/75] Linking CXX executable bin\empty_command.exe
ninja: build stopped: subcommand failed.