How to redirect warnings to appveyor logger when using cmake?
I can't figure out how to pass logger dll location to cmake. It always strips it of ""
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | 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

Support Staff 1 Posted by Feodor Fitsner on 08 Aug, 2015 04:01 AM
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: http://www.appveyor.com/docs/build-worker-api
2 Posted by flashmozzg on 08 Aug, 2015 02:14 PM
>_< 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 Posted by flashmozzg on 08 Aug, 2015 02:15 PM
Sorry, I messed up formatting in my previous comment and couldn't find a way to edit/delete it.
Support Staff 4 Posted by Feodor Fitsner on 08 Aug, 2015 04:28 PM
Cool, thanks for the update.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:58 AM.