commit 6a51c7605a12318bcae889547022de4ff3b6012c
parent ab08f93d9c13482891e6142d62e2ad77ac3e5012
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Sun, 28 Apr 2024 16:50:01 +0200
set packaging install prefix only for Unix
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -66,6 +66,9 @@ set(CPACK_COMPONENTS_GROUPING IGNORE)
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
set(CPACK_DEB_COMPONENT_INSTALL ON)
set(CPACK_RPM_COMPONENT_INSTALL ON)
-set(CPACK_PACKAGING_INSTALL_PREFIX /usr/local)
+
+if(UNIX AND NOT APPLE)
+ set(CPACK_PACKAGING_INSTALL_PREFIX /usr/local)
+endif()
include(CPack)