0

CMake can not only create projects on different platforms but also can build the project. For example, using cmake --build command can build the created projects on different platforms. However, the big problem is that invoking this command will not return a value, which will tell whether the built project is successful or not. In many cases, we desperately need know this information. For example, when we use Jenkins to automatically built the project, we need a way to tell Jenkins whether the built project is successful or not. Any ideas? Thanks.

feelfree
  • 11,175
  • 20
  • 96
  • 167
  • possible duplicate of [How do I get the application exit code from a Windows command line?](http://stackoverflow.com/questions/334879/how-do-i-get-the-application-exit-code-from-a-windows-command-line) – Peter Petrik Aug 21 '14 at 09:14
  • 1
    It returns exit code on my machine. – Peter Petrik Aug 21 '14 at 09:15
  • @Peter - its not clear to me this is a Windows question. There's no Windows tag. Jenkins is Java so it should run anywhere. Where did you surmise this was a Windows question? – jww Aug 21 '14 at 13:23

0 Answers0