Use the CMAKE_HOST_WIN32 variable instead of win32 to fix building with a reassigned CMAKE_SYSTEM_NAME
This commit is contained in:
parent
7aae055651
commit
0f87742ea8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue