Skip to content

Commit

Permalink
Update packaging.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
kmilos committed Feb 3, 2025
1 parent 14d6d11 commit d87d8d1
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 @@ -28,8 +28,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 @@ -63,8 +65,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 d87d8d1

Please sign in to comment.