Clarify the Windows C++ package compiler dependency (#5053)

Add a -MSVC suffix to our binary package (and prepare for future MinGW build)

cc #5052
This commit is contained in:
Simon Hausmann 2024-04-15 08:28:19 +02:00 committed by GitHub
parent 2c0ba2bc0f
commit cacc13343f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 3 deletions

View file

@ -459,7 +459,7 @@ jobs:
- name: Extract files
run: |
mkdir artifacts
mv Slint-cpp-*-win64.exe artifacts/
mv Slint-cpp-*-win64*.exe artifacts/
mv Slint-cpp-*-Linux-x86_64.tar.gz artifacts/
mv slint-viewer-linux.tar.gz artifacts/
mv slint-viewer-macos.tar.gz artifacts/

View file

@ -439,10 +439,17 @@ set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_LIST_DIR}/README.md")
set(CPACK_STRIP_FILES ON)
set(CPACK_NSIS_DEFINES "ManifestDPIAware true")
if(NOT WIN32)
if(WIN32)
if(MSVC)
set(compiler_suffix "-MSVC")
elseif(MINGW)
set(compiler_suffix "-MinGW")
endif()
set(CPACK_SYSTEM_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}${compiler_suffix}")
else()
set(CPACK_GENERATOR "TGZ")
set(CPACK_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
endif(NOT WIN32)
endif()
include(CPack)