[CMake] How to change (and account for) default Visual Studio compiler flags

Jason Heeris jason.heeris at gmail.com
Thu Jun 28 08:13:51 EDT 2018


On Thu., 28 Jun. 2018, 8:45 pm Innokentiy Alaytsev, <alaitsev at gmail.com>
wrote:

> Are you setting CMAKE_<...> variables before creating you targets of after
> that?
>

I used the technique in that Stackoverflow link to print and override them
before anything else happens in the project. They are still empty
immediately before the add_executable() call. Certain options (eg. /Wx-) do
not appear in any of those variables but still show up in the generated
output.

— Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180628/2c270629/attachment.html>


More information about the CMake mailing list