File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -117,8 +117,14 @@ if(BUILD_SHARED_LIBS AND WIN32 AND HTTPLIB_COMPILE)
117117 set (CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON )
118118endif ()
119119
120- if (CMAKE_SYSTEM_NAME MATCHES "Windows" AND ${CMAKE_SYSTEM_VERSION} VERSION_LESS "10.0.0" )
121- message (SEND_ERROR "Windows ${CMAKE_SYSTEM_VERSION} or lower is not supported. Please use Windows 10 or later." )
120+ if (CMAKE_SYSTEM_NAME MATCHES "Windows" )
121+ if (CMAKE_SYSTEM_VERSION )
122+ if (${CMAKE_SYSTEM_VERSION} VERSION_LESS "10.0.0" )
123+ message (SEND_ERROR "Windows ${CMAKE_SYSTEM_VERSION} or lower is not supported. Please use Windows 10 or later." )
124+ endif ()
125+ else ()
126+ message (WARNING "The target is Windows but CMAKE_SYSTEM_VERSION is not set, the default system version is set to Windows 10 or later." )
127+ endif ()
122128endif ()
123129if (CMAKE_SIZEOF_VOID_P LESS 8)
124130 message (WARNING "Pointer size ${CMAKE_SIZEOF_VOID_P} is not supported. Please use a 64-bit compiler." )
You can’t perform that action at this time.
0 commit comments