Hi, I've never used the CL feature, but as far as CMake syntax is concerned, I believe you're looking for this:
target_compile_options(const PRIVATE /analyze /analyze:plugin EspXEngine.dll) Petr On 11 April 2018 at 00:23, Tiago Macarios <tiagomacar...@gmail.com> wrote: > 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 > >
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake