Click here to Skip to main content
14,426,633 members
Rate this:
Please Sign up or sign in to vote.

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.

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100