You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set(EXPAT_MSVC_STATIC_CRT OFFCACHEBOOL"Use /MT flag (static CRT) when compiling in MSVC")
118
113
endif()
119
114
115
+
if(EXPAT_BUILD_TESTS)
116
+
# We have to call enable_language() before modifying any CMAKE_CXX_* variables
117
+
enable_language(CXX)
118
+
endif()
119
+
120
120
#
121
121
# Environment checks
122
122
#
@@ -129,6 +129,14 @@ if(EXPAT_WITH_LIBBSD)
129
129
endif()
130
130
endif()
131
131
132
+
if(MSVC)
133
+
# Minimum supported MSVC version is 1910 = Visual Studio 15.0/2017
134
+
# See also https://cmake.org/cmake/help/latest/variable/MSVC_VERSION.html
135
+
if(MSVC_VERSIONVERSION_LESS 1910)
136
+
message(SEND_ERROR"MSVC_VERSION ${MSVC_VERSION} is not a supported Visual Studio compiler version. Please use Visual Studio 15.0/2017 or any later version.")
0 commit comments