build: don't set the prefix for mac builds

This commit is contained in:
Dimitris Panokostas 2024-10-03 13:15:05 +02:00
parent 95b08a1cad
commit f0c5ef0114
No known key found for this signature in database
GPG Key ID: 330156A68E9E0929

View File

@ -614,7 +614,9 @@ else()
endif()
# Base package settings
set(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
if (NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
set(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
endif ()
set(CPACK_VERBATIM_VARIABLES YES)
set(CPACK_SOURCE_IGNORE_FILES .git/ .github/ .vscode/ _CPack_Packages/)
set(CPACK_PACKAGE_NAME ${CMAKE_PROJECT_NAME})