[cmake-developers] [CMake 0013015]: cpack deb generator components specify output names

Mantis Bug Tracker mantis at public.kitware.com
Sun Mar 4 04:47:04 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=13015 
====================================================================== 
Reported By:                Andrew Aladjev
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13015
Category:                   CPack
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-03-04 04:47 EST
Last Modified:              2012-03-04 04:47 EST
====================================================================== 
Summary:                    cpack deb generator components specify output names
Description: 
http://stackoverflow.com/questions/9538642/cpack-deb-generator-components-output-names

Steps to Reproduce: 
install (TARGETS ${PROJECT_NAME}_shared DESTINATION ${CMAKE_INSTALL_PREFIX}/lib 
        COMPONENT runtime)
    install (TARGETS ${PROJECT_NAME}_static DESTINATION
${CMAKE_INSTALL_PREFIX}/lib 
        COMPONENT development)
    install (FILES ${INCLUDES} DESTINATION ${CMAKE_INSTALL_PREFIX}/include
        COMPONENT development)

    ...
    set (CPACK_PACKAGE_FILE_NAME 
       
"lib${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}")

I have 2 deb packages as a result:

    libmpreal_0.1.1-1_amd64-development.deb
    libmpreal_0.1.1-1_amd64-runtime.deb

But I want to have for debian standarts another names:

    libmpreal-dev_0.1.1-1_amd64.deb
    libmpreal_0.1.1-1_amd64.deb

Additional Information: 
Now I am reading [this][1] at the method **cmCPackDebGenerator::PackageOnePack**
here is a code:

    outputFileName(
        std::string(this->GetOption("CPACK_PACKAGE_FILE_NAME")) 
        + "-" + packageName + this->GetOutputExtension()
    );

Does this mean that I cant specify a name for my packages?! I would like to make
a mistake..


  [1]:
https://github.com/Kitware/CMake/blob/master/Source/CPack/cmCPackDebGenerator.cxx
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-03-04 04:47 Andrew Aladjev New Issue                                    
======================================================================




More information about the cmake-developers mailing list