Skip to content

Commit

Permalink
Update packaging.cmake
Browse files Browse the repository at this point in the history
(cherry picked from commit d87d8d1)
  • Loading branch information
kmilos committed Feb 4, 2025
1 parent 4ef2c03 commit d9a63c5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cmake/packaging.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ if ( NOT ${CMAKE_BUILD_TYPE} STREQUAL Release )
set (BT ${CMAKE_BUILD_TYPE})
endif()

if ( MINGW OR MSYS )
if ( MINGW )
set (PACKDIR MinGW)
elseif ( MSYS )
set (PACKDIR MSYS)
elseif ( MSVC )
set (PACKDIR msvc)
elseif ( CYGWIN )
Expand Down Expand Up @@ -66,8 +68,10 @@ endif()

set (VS "") # VisualStudio
if ( MSVC )
# VS2015 >= 1900, VS2017 >= 1910, VS2019 >= 1920
if ( MSVC_VERSION GREATER 1919 )
# VS2015 >= 1900, VS2017 >= 1910, VS2019 >= 1920, VS2022 >= 1930
if ( MSVC_VERSION GREATER 1929 )
set(VS 2022)
elseif ( MSVC_VERSION GREATER 1919 )
set(VS 2019)
elseif ( MSVC_VERSION GREATER 1909 )
set(VS 2017)
Expand Down

0 comments on commit d9a63c5

Please sign in to comment.