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. -- 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
