myx-cmake/MyxCMake/modules/MyxCMakeCPackProject.cmake

6 lines
196 B
CMake
Raw Permalink Normal View History

2021-12-08 11:32:04 +00:00
if(CPACK_GENERATOR MATCHES "DEB")
set(CPACK_PACKAGING_INSTALL_PREFIX "/opt/${CPACK_PACKAGE_VENDOR}/${CPACK_PACKAGE_NAME}")
else()
set(CPACK_PACKAGING_INSTALL_PREFIX "${PROJECT_NAME}")
endif()