Use the CMAKE_HOST_WIN32 variable instead of win32 to fix building with a reassigned CMAKE_SYSTEM_NAME

This commit is contained in:
Username404 2021-12-03 16:54:23 +01:00
parent 7aae055651
commit 0f87742ea8
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ elseif(MINGW OR MSVC)
set(CPACK_TOPLEVEL_TAG "Win32")
set(CPACK_NSIS_MODIFY_PATH ON)
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON)
if (WIN32)
if (CMAKE_HOST_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)