in Education by
A gitlab-runner configuration script .gitlab-ci.yml, for execution in the Powershell: windows: tags: - windows stage: build script: - New-Item -ItemType "directory" -Confirm:$false -Force:$true -Name "build" - cd build - cmd.exe "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" - cmake -G "Visual Studio 15 2017" -A x64 -T host=x64 -B. .. - cmake -j8 --build . --config Debug - ctest -j4 results in $ cmd.exe "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" [...] -- Configuring done -- Generating done -- Build files have been written to: C:/gitlab-runner/builds/xxxxxxxx/build $ cmake -j8 --build . --config Debug CMake Error: The source directory "C:/gitlab-runner/builds/xxxxxxxx/build/Debug" does not exist. Specify --help for usage, or press the help button on the CMake GUI. ERROR: Job failed: exit status 1 How to resolve this conflict between the configure step (cmake) and the build step (cmake --build)? The latter won't work without the option --config Debug; but if that option is given, then it looks for a nonexistent directory. Same problem with --config Release. Disclosure: cross-posting from the CMake mailing list. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
The ordering of command line arguments to cmake matters in this case. For build mode, the --build option must be the first one listed, but the -j8 option has been put before it. Change the build command to the following and it should work: cmake --build . --config Debug -j8 The ordering requirement is documented for the --build option in the Build A Project section of the cmake manual.

Related questions

0 votes
    I'm trying to implement continuous integration and continuous deployment to my DEV Azure App Service. I'm ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 4, 2022 in Education by JackTerrance
0 votes
    I have tried many solution online but I am unable to fix. First off all i check in bin and it ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    I am receiving the error "'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine" ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 16, 2022 in Education by JackTerrance
0 votes
    I'm making a new Android project, with the standard 'app' module, as well as a library project ( ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    A couple months ago I did a project in C++ with Visual Studio that I needed pthreads for, so I ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 9, 2022 in Education by JackTerrance
0 votes
    I'm learning oop in python after learning it in Java. It happens that i'm trying to create an array from my class ... .name = name person1 = Person() person1.set_name("John") #...
asked Apr 2, 2022 in Education by JackTerrance
0 votes
    I am using Team Services on domain visualstudio.com and I need to delete one project, I found out that I ... don't have privileges. Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    How can I fix this issues while compiling release build in Android Studio 3.0 RC2 Error:Error: commons- ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 24, 2022 in Education by JackTerrance
0 votes
    What is the .vs folder used for exactly? It gets created at the base folder of my solution. I ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    In Visual Studio Code, is there any way to have new tabs open to the right of all existing tabs? ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 6, 2022 in Education by JackTerrance
0 votes
    In Visual Studio Code, is there any way to have new tabs open to the right of all existing tabs? ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 4, 2022 in Education by JackTerrance
0 votes
    Visual Studio Code has option to connect to jupyter notebook. When it's done I can execute my script ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 24, 2022 in Education by JackTerrance
0 votes
    I am a complete beginner in allegro and i just installed allegro correctly and this is my code(my first ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 22, 2022 in Education by JackTerrance
0 votes
    I'm trying to install MySQL for Visual Studio 1.2.8 and Connector/NET 8.0.13 via MySQL Installer ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 21, 2022 in Education by JackTerrance
0 votes
    I'm a .Net developer and want to get into developing Silverlight applications. I have VS 2008 but wanted ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 23, 2022 in Education by JackTerrance
...