Only set the CPack_NSIS branding text variables on windows

This commit is contained in:
Username404 2021-09-18 18:29:53 +02:00
parent 7a12f275ea
commit c1ed7b3e16
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 5 additions and 3 deletions

View File

@ -188,9 +188,11 @@ elseif(MINGW OR MSVC)
set(CPACK_TOPLEVEL_TAG "Win32-${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}")
set(CPACK_NSIS_MODIFY_PATH ON)
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON)
# The two following variables require CMake 3.20 or higher
set(CPACK_NSIS_BRANDING_TEXT "NSIS Installer for the yerbacon compiler")
set(CPACK_NSIS_BRANDING_TEXT_TRIM_POSITION CENTER)
if (WIN32)
# The two following variables require CMake 3.20 or higher
set(CPACK_NSIS_BRANDING_TEXT "NSIS Installer for the yerbacon compiler")
set(CPACK_NSIS_BRANDING_TEXT_TRIM_POSITION CENTER)
endif()
set(CPACK_GENERATOR ZIP;NSIS)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ybcon.exe DESTINATION bin)
endif()