How to redirect warnings to appveyor logger when using cmake?

flashmozzg's Avatar


08 Aug, 2015 12:52 AM

I can't figure out how to pass logger dll location to cmake. It always strips it of ""

  1. Support Staff 1 Posted by Feodor Fitsner on 08 Aug, 2015 04:01 AM

    Feodor Fitsner's Avatar

    That's logger for MSBuild. It's not supposed to work with cmake?

    Though the API it uses can be used by your custom logger:

  2. 2 Posted by flashmozzg on 08 Aug, 2015 02:14 PM

    flashmozzg's Avatar

    >_< turns out there was much simpler solution. CMake already uses msbuild (when vs is generator) and you can pass args to native builder (in that case msbuild) to cmake via -- . So all I had to do is this: cmake --build . --config Release -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

    Hope that this helps someone out there. (Build times are much better via cmake because it can be smart about dependencies if they already built/available, this really helps since build times aren't fast)

  3. 3 Posted by flashmozzg on 08 Aug, 2015 02:15 PM

    flashmozzg's Avatar

    Sorry, I messed up formatting in my previous comment and couldn't find a way to edit/delete it.

  4. Support Staff 4 Posted by Feodor Fitsner on 08 Aug, 2015 04:28 PM

    Feodor Fitsner's Avatar

    Cool, thanks for the update.

  5. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:58 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac