ERR: Added for-loop scoping hack for CMake sources on MSVC
This commit is contained in:
parent
08ff3427a8
commit
d3735b65d6
|
@ -28,6 +28,8 @@
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning ( disable : 4786 )
|
#pragma warning ( disable : 4786 )
|
||||||
|
// for loop scoping hack
|
||||||
|
#define for if(false) {} else for
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CMAKE_NO_ANSI_STREAM_HEADERS
|
#ifndef CMAKE_NO_ANSI_STREAM_HEADERS
|
||||||
|
|
Loading…
Reference in New Issue