Commit 6e1a2a51 authored by jehan's avatar jehan

automatically setting CPACK_PACKAGING_INSTALL_PREFIX to CMAKE_INSTALL_PREFIX

parent 5fb5abf0
......@@ -23,6 +23,12 @@
if(NOT CPACK_PACKAGE_NAME)
set(CPACK_PACKAGE_NAME "${PROJECT_NAME}")
endif()
if (NOT CPACK_PACKAGING_INSTALL_PREFIX AND CMAKE_INSTALL_PREFIX)
set(CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
message("Setting packaging install prefix to ${CPACK_PACKAGING_INSTALL_PREFIX}")
endif()
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Toolbox package used by Belledonne Communications projects")
set(CPACK_PACKAGE_VENDOR "Belledonne Communications")
set(CPACK_PACKAGE_CONTACT "jehan.monnier@linphone.org")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment