build: add cpack prefix to match install one

This ensures that if we use CPack, it will use the same prefix specified in the configure/build steps as well
This commit is contained in:
Dimitris Panokostas 2024-10-03 12:42:13 +02:00
parent 667367f191
commit 95b08a1cad
No known key found for this signature in database
GPG Key ID: 330156A68E9E0929

View File

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