Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

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 <Config>_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.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900