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

  • SEARCH
  • Home
  • 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 6836433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:21:18+00:00 2026-05-26T23:21:18+00:00

I generate a shared library named, for example, mylib80.dll (it has postfix 80, because

  • 0

I generate a shared library named, for example, mylib80.dll (it has
postfix “80”, because I want to embed version info into library name.

I use set_target_properties with _POSTFIX property to achieve
this. By default, CMake names corresponding import library as
mylib80.lib. But I want my shared lib to have an import lib named
mylib.lib (without version embedded into its name).

Is it possible at
all? I tried IMPORT_SUFFIX, but it seems to not work as I expect.

I use MSVC, I do not need to have this for GCC and other compilers.

Any help would be appreciated.

  • 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-26T23:21:19+00:00Added an answer on May 26, 2026 at 11:21 pm

    Use the following CMake target properties to specify separate names for *.lib and *.dll files, rather than using the _POSTFIX property:

    http://cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:ARCHIVE_OUTPUT_NAME
    http://cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:LIBRARY_OUTPUT_NAME
    http://cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:RUNTIME_OUTPUT_NAME

    The RUNTIME_OUTPUT_NAME property corresponds to the name of the dll file, and one of the others (I always forget which one…) corresponds to the name of the lib file.

    If the lib is already named correctly without _POSTFIX, then simply rename just the dll file using the RUNTIME_OUTPUT_NAME property.

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

Sidebar

Related Questions

What I want to do is to create a new shared library called libxxx
The way my team's project is developed, we generate a Shared Object library for
I have a template function in a shared library written in C++(the function is
I have problems using a shared library that was linked against a shared library.
I have protobuf proto-files in source tree. I want to generate the source files
I'm using the Android NDK and Cmake to generate shared libraries of my project.
Using the java.util.concurrent.locks.ReentrantLock library as follows: Two threads generate a random number and use
I have a project that includes a shared library as source files. Some of
I'm developing a shared library. Let's say I have the following class definition: class
I'm trying to create a Shared library (*.so) in ASM and I'm not sure

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.