<div dir="ltr"><div><div><div>Hi,<br><br></div>I've never used the CL feature, but as far as CMake syntax is concerned, I believe you're looking for this:<br><br></div>target_compile_options(const PRIVATE /analyze /analyze:plugin EspXEngine.dll)<br><br></div>Petr<br><div class="gmail_extra"><br><div class="gmail_quote">On 11 April 2018 at 00:23, Tiago Macarios <span dir="ltr"><<a href="mailto:tiagomacarios@gmail.com" target="_blank">tiagomacarios@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am trying to pass the analyze flags to cl.exe, but I cannot figure out how to get it working, example:<div><br></div><div><div>cmake_minimum_required (VERSION 2.8.11)</div><div>set (CMAKE_VERBOSE_MAKEFILE ON)</div><div>project (cppcore)</div><div>add_executable (const const.cpp)</div><div>target_compile_options (const analyze -analyze:plugin EspXEngine.dll)</div></div><div><br></div><div>how to have cmake to respect that last line? I tried adding quotes, but that seems not to work</div></div><br></blockquote></div><br></div></div>