CMake Plugin is installed but cmake is not recognized
Completed
Hi there,
I've installed and enabled CMake plugin thru Teamcity sever (build 66605) -> Server Administration -> Plugin List -> Upload plugin zip, and the runner type "CMake configure" and "CMake build" are also available when editing the build step.
However, when running the build step, it told me following errors. So why cmake is not recognized even CMake plugin is installed and enabled? How to fix it?
[15:20:38]Step 5/8: Create Library Project (CMake configure)
[15:20:38][Step 5/8] Starting: C:\Windows\system32\cmd.exe /C C:\TeamCity\temp\agentTmp\wrap7625516966510761186.cmd
[15:20:38][Step 5/8] in directory: C:\TeamCity\work\ba1ab51c35775da4\SpectraProcessingLibrary
[15:20:38][Step 5/8]
[15:20:38][Step 5/8] C:\TeamCity\work\ba1ab51c35775da4\SpectraProcessingLibrary>cd C:\TeamCity\work\ba1ab51c35775da4\SpectraProcessingLibrary
[15:20:38][Step 5/8]
[15:20:38][Step 5/8] C:\TeamCity\work\ba1ab51c35775da4\SpectraProcessingLibrary>cmake -Wdev --warn-uninitialized --warn-unused-vars -DShared=OFF -DCore=OFF -DIQS=OFF -S . -B ./build -DCMAKE_SYSTEM_VERSION=8.1 . 2>&1
[15:20:38][Step 5/8] 'cmake' is not recognized as an internal or external command,
[15:20:38][Step 5/8] operable program or batch file.
[15:20:38][Step 5/8]
[15:20:38][Step 5/8] C:\TeamCity\work\ba1ab51c35775da4\SpectraProcessingLibrary>exit 9009
[15:20:38][Step 5/8] Process exited with code 9009
[15:20:38][Step 5/8] Process exited with code 9009 (Step: Create Library Project (CMake configure))
[15:20:38][Step 5/8] Step Create Library Project (CMake configure) failed
Please sign in to leave a comment.
Hi Tim,
The plugin requires cmake to be installed on your agent's machine, as it's not shipped in the plugin itself. As you can see from the provided build log, the agent failed to launch cmake application:
I expect the issue to be fixed once you install cmake on your agent(s).
Best regards,
Mikhail Efremov
Thanks Mikhail. Yes, it was fixed by installing CMake separately