[CMake] Ignoring Visual Studio 2015 warnings in .inl files
compix
wladimirkroeker at gmail.com
Fri Oct 2 18:25:49 EDT 2015
Thanks for the answer. I should indeed replace the "/w" with "/W0" although
msdn <https://msdn.microsoft.com/en-us/library/thxezb7y(v=vs.140).aspx>
states as of 03.10.2015 that the option is called "/w".
Both options ignore all warnings in *.h*, *.c* files but /not / in *.inl*
files.
I fix all my warnings since I usually treat them as errors but not in
external libraries. I could fix this by linking it dynamically but then I'd
lose potential optimizations and I don't like .dlls.
The flags aren't project wide because I use multiple cmake files thus only
warnings of subfolders are ignored.
Oh and I don't want to spam my project with #pragmas :)
--
View this message in context: http://cmake.3232098.n2.nabble.com/Ignoring-Visual-Studio-2015-warnings-in-inl-files-tp7591685p7591687.html
Sent from the CMake mailing list archive at Nabble.com.
More information about the CMake
mailing list