[CMake] use analyze with visual studio

Tiago Macarios tiagomacarios at gmail.com
Tue Apr 10 18:23:16 EDT 2018


I am trying to pass the analyze flags to cl.exe, but I cannot figure out
how to get it working, example:

cmake_minimum_required (VERSION 2.8.11)
set (CMAKE_VERBOSE_MAKEFILE ON)
project (cppcore)
add_executable (const const.cpp)
target_compile_options (const analyze -analyze:plugin EspXEngine.dll)

how to have cmake to respect that last line? I tried adding quotes, but
that seems not to work
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180410/d2a1d1bd/attachment.html>


More information about the CMake mailing list