[cmake-developers] VS2015 /Zc:inline

Brad King brad.king at kitware.com
Wed Nov 30 14:14:45 EST 2016


On 11/30/2016 01:37 PM, Serti Ayoub wrote:
> Here: https://github.com/Kitware/CMake/blob/1b592b6458ce033b04ba2aa0ee4cf5ace0fd042c/Source/cmVS141CLFlagTable.h#L174 
> I think it need also an entry : { "RemoveUnreferencedCodeData", "Zc:inline-", "", "false", 0}

Yes, thanks:

* https://gitlab.kitware.com/cmake/cmake/merge_requests/298

Note that that code does not exist in CMake 3.6, and that flag table is
used only for the v141 toolset that comes with VS 2017 RC.

According to the documentation you linked for the -Zcinline option
the default is OFF if it is not specified, so regardless of the above
it should still not appear in a CMake-generated project by default.

-Brad



More information about the cmake-developers mailing list