Only set the CPack_NSIS branding text variables on windows
This commit is contained in:
parent
7a12f275ea
commit
c1ed7b3e16
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue