File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ elseif(WIN32)
23
23
add_definitions (-D_WIN32_WINNT=0x0A00 )
24
24
25
25
# Windows SDK
26
- if (MINGW OR NOT CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION OR CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION STREQUAL "" )
27
- string (REGEX REPLACE "^([0-9]+)\\ .([0-9]+)\\ .([0-9]+)$" "\\ 3" CMAKE_WIN32_SDK ${CMAKE_SYSTEM_VERSION} )
28
- else ()
26
+ if (CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION AND NOT MINGW )
29
27
string (REGEX REPLACE "^([0-9]+)\\ .([0-9]+)\\ .([0-9]+)\\ .([0-9]+)$" "\\ 3" CMAKE_WIN32_SDK ${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION} )
28
+ else ()
29
+ string (REGEX REPLACE "^([0-9]+)\\ .([0-9]+)\\ .([0-9]+)$" "\\ 3" CMAKE_WIN32_SDK ${CMAKE_SYSTEM_VERSION} )
30
30
endif ()
31
31
add_definitions (-D_WIN32_SDK=${CMAKE_WIN32_SDK} )
32
32
You can’t perform that action at this time.
0 commit comments