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()