cotire
cotire copied to clipboard
Not all warnings are suppressed from MSVC prefix header.
Hi sakra, I just started using cotire and I have the problem that an external header that is included in the prefix header causes the warning C4996. It seems that this warning is even issued if you set the warning level to 0. So you may consider the following small change:
# file cotire.cmake
...
function( cotire_generate_prefix_header _prefixFile)
...
# line 1396
elseif (_option_COMPILER_ID MATCHES "MSVC")
- set (_prologue "#pragma warning(push, 0)")
+ set (_prologue "#pragma warning(push, 0)\n#pragma warning(disable : 4996)")
...
This will also suppress this warning.