[cmake-developers] VS2015 /Zc:inline
Serti Ayoub
ayb.serti at gmail.com
Wed Nov 30 14:13:28 EST 2016
Sorry, I think it's an error on VS2015 documentation. They pretend that, I
quote "By default, this option is off (*/Zc:inline-*)." However the default
value is */Zc:inline*
<goog_285042015>
https://msdn.microsoft.com/en-us/library/dn642448.aspx
Is the any way to remove this from CFlags, It seems that
> set_target_properties(${ProjectTarget} PROPERTIES COMPILE_FLAGS
> "/Zc:inline-" )
>
Doesn't work
2016-11-30 18:37 GMT+00:00 Serti Ayoub <ayb.serti at gmail.com>:
> Hello,
> Here: https://github.com/Kitware/CMake/blob/1b592b6458ce033b04ba2aa0ee4cf5
> ace0fd042c/Source/cmVS141CLFlagTable.h#L174
> I think it need also an entry : { "RemoveUnreferencedCodeData", "
> Zc:inline-", "", "false", 0 }
> What do you think ?
>
> -Ayb
>
> 2016-11-30 18:12 GMT+00:00 Brad King <brad.king at kitware.com>:
>
>> On 11/30/2016 12:29 PM, Serti Ayoub wrote:
>> > I'm using CMake 3.6 to generate VS2015 solution/projects.
>> > I found that cmake automatically add /Zc:inline for all projects
>> > configuration which make some of my symbols non-visible in release mode.
>>
>> I'm not aware of any code in CMake that does that. There is no mention
>> of that flag or of RemoveUnreferencedCodeData in the 3.6 source code.
>>
>> Please try a simple test project.
>>
>> -Brad
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20161130/5379c3d5/attachment-0001.html>
More information about the cmake-developers
mailing list