diff --git a/cmake/macros/Interrogate.cmake b/cmake/macros/Interrogate.cmake index 7d646f5045..6cad20cac6 100644 --- a/cmake/macros/Interrogate.cmake +++ b/cmake/macros/Interrogate.cmake @@ -33,6 +33,9 @@ set(INTERROGATE_EXCLUDE_REGEXES if(WIN32) list(APPEND IGATE_FLAGS -D_X86_ -D__STDC__=1 -DWIN32_VC -D "_declspec(param)=" -D "__declspec(param)=" -D_near -D_far -D__near -D__far -D_WIN32 -D__stdcall -DWIN32) endif() +if(MSVC_VERSION) + list(APPEND IGATE_FLAGS "-D_MSC_VER=${MSVC_VERSION}") +endif() if(INTERROGATE_VERBOSE) list(APPEND IGATE_FLAGS "-v") endif()