Browse Source

CMake: Pass _MSC_VER to Interrogate under MSVC

Sam Edwards 6 years ago
parent
commit
55cfc6c2b9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      cmake/macros/Interrogate.cmake

+ 3 - 0
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()