CMake

MissingSourceFile

command_line: D:\a\nightly-builds\nightly-builds\build\bin\ctest.exe "--build-and-test" "D:/a/nightly-builds/nightly-builds/Tests/MissingSourceFile" "D:/a/nightly-builds/nightly-builds/build/Tests/MissingSourceFile" "--build-two-config" "--build-generator" "Ninja" "--build-makeprogram" "C:/ProgramData/chocolatey/bin/ninja.exe" "--build-project" "MissingSourceFile" "--build-options" "--test-command" "MissingSourceFile"

working_directory: "./Tests"

Processors: 1

Execution Time: 3.908

Completion Status: Completed

Exit Code: Completed

Environment: #CTEST_RESOURCE_GROUP_COUNT=

Exit Value: 1

Pass Reason: Required regular expression found. Regex=[CMake Error at CMakeLists.txt:3 \(add_executable\):[ ]*Cannot find source file:[ ]*DoesNotExist/MissingSourceFile.c]

stdout:

Internal cmake changing into directory: D:/a/nightly-builds/nightly-builds/build/Tests/MissingSourceFile
======== CMake output     ======
The C 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
Configuring done (3.6s)
CMake Error at CMakeLists.txt:3 (add_executable):
  Cannot find source file:

    DoesNotExist/MissingSourceFile.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
  .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
  .f95 .f03 .hip .ispc


CMake Error at CMakeLists.txt:3 (add_executable):
  No SOURCES given to target: MissingSourceFile


CMake Generate step failed.  Build files cannot be regenerated correctly.
======== End CMake output ======
Error: cmake execution failed
Status: passed
Loading...