This is precisely my situation. I have a large project where 50+ packages are generated. I wanted, needed, to be able to set each packages' version uniquely. Using the CPACK_DEBAIN_<COMPONENT>_PACKAGE_VERSION variable seemed to be the correct way, except it doesn't work. My patch allows CPACK_DEBAIN_<COMPONENT>_PACKAGE_VERSION to be recognized by CPack and it's value used when the package is created. The patch doesn't break the existing functionality of CPACK_PACKAGE_VERSION being used. It simply checks to see of CPACK_DEBAIN_<COMPONENT>_PACKAGE_VERSION is set. If it is, use it's value. It isn't not set use the value of CPACK_PACKAGE_VERSION.
-- Sent from: http://cmake.3232098.n2.nabble.com/ -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake