Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7610209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:21:51+00:00 2026-05-31T01:21:51+00:00

install (TARGETS ${PROJECT_NAME}_shared DESTINATION ${CMAKE_INSTALL_PREFIX}/lib COMPONENT runtime) install (TARGETS ${PROJECT_NAME}_static DESTINATION ${CMAKE_INSTALL_PREFIX}/lib COMPONENT development)

  • 0
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

Now I am reading this 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 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T01:21:52+00:00Added an answer on May 31, 2026 at 1:21 am

    The naming scheme for CPack generated package is not flexible enough to do what
    you want, there is a pending bug/feature request for that, bug 12997,
    along with a bunch of related bug report.

    Short answer is: you can’t do what you want now.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a makefile with something like the following targets: install: do a whole
On install I copy some files in 'System32' folder. When uninstalling these files are
On install I want to optionally copy some .ini files from SOURCEDIR to TARGETDIR
We install Matlab Runtime on a machine, then we restart a .net windows service
I install plugin open_id_authentication and have this error: /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.beta/lib/active_support/dependencies.rb:167:in `require': no such file to
While installing my project to local repository with mvn install command, hibernate mapping files
I have one Xcode project with multiple targets. During development, it is becoming laborious
I wrote an app that can install and work on my development PC (a
Is it possible to use install(TARGETS ...) with targets that are defined in directories
I have the following PHONY target in Makefile install: echo /usr/bin/shelldecrypt must be writable

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.