CMAKE_MAKE_PROGRAM value cannot be retrieved from CMakeCache.txt

I have a project that I am running on Jenkins CI server and is building using the Cmake plugin and I keep getting the same error:

-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/580152/Celero/build/64
ERROR:Failed to get CMAKE_MAKE_PROGRAM value from C:\Users\580152\Celero\build\64\CMakeCache.txt

      

I am using Visual Studio 2012 and I can create and run a .sln file in Visual Studio using the files generated by the Cmake plugin. However, it never builds or ends whenever I use the Cmake plugin. I've worked with Jenkins a bit in the previous weeks, but I'm still a noob when it comes to some plugins and tweaks, and the same goes for Cmake.

Is this a Jenkins plugin issue, a Cmake bug, or am I just not installing something correctly / missing a problem at all?

Any help is greatly appreciated.

Update: I found this error is caused by the Cmakebuilder plugin and has been updated to fix this issue in version 2.1, and even though I am currently using this version of the plugin, the error still occurs. Perhaps something happened that my version was not updated properly (although it says no updates are available), or is it a problem with a plugin that should be resolved?

Thanks again for any help.

+3


source to share


1 answer


Maybe my experience is old, but I had problems with Jenkins cmake plugin. So I prefer to do my Jenkins cmake with a shell script package. It also makes the Jenkins build job closer to my development. I try to keep my Jenkins build jobs a little more than



mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=../exports ..
cmake --build . --config Release --target test
cmake --build . --config Release --target install

      

0


source







All Articles