From 0f87742ea8a528395110cf98e94ae538c0900cfa Mon Sep 17 00:00:00 2001 From: Username404 Date: Fri, 3 Dec 2021 16:54:23 +0100 Subject: [PATCH] Use the CMAKE_HOST_WIN32 variable instead of win32 to fix building with a reassigned CMAKE_SYSTEM_NAME --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 696c1ca..81bdbcc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)