From c1ed7b3e1657c6ee9f5e350a0153ea73f7ddeaa6 Mon Sep 17 00:00:00 2001 From: Username404 Date: Sat, 18 Sep 2021 18:29:53 +0200 Subject: [PATCH] Only set the CPack_NSIS branding text variables on windows --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ceea667..d9935ed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()