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.se...@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.k...@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 >> >> >
-- 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: http://public.kitware.com/mailman/listinfo/cmake-developers