[CMake] SOVERSION with DLL's

James Bigler jamesbigler at gmail.com
Thu Oct 8 00:15:56 EDT 2009


This is what I do:

if(WIN32)
  set_target_properties( mylib PROPERTIES OUTPUT_NAME
"mylib.${abi_version}" VERSION ${MYLIB_VERSION_STRING})
else()
  set_target_properties( mylib PROPERTIES OUTPUT_NAME "mylib" VERSION
${MYLIB_VERSION_STRING} SOVERSION ${abi_version} )
endif()

Where abi_version and MYLIB_VERSION_STRING are provided by my script.

The files are built with the versioned name and install normally.

James

On Wed, Oct 7, 2009 at 10:34 AM, Dixon, Shane <Shane.Dixon at atmel.com> wrote:
> I’d like to install my DLL’s with the SOVERION appended to the end (i.e.
> MYDLL-3.dll).  Is there a better way to do this than to just do this:
>
>
>
> Install( FILES MYDLL.dll DESTINATION bin RENAME
> MYDLL-${MYDLL_SOVERSION}.dll)
>
>
>
> I’d have to do this several times over and I’d also have to exclude the
> MYDLL.dll from being installed in the normal RUNTIME property.  Any
> suggestions regarding the best way to do this?
>
>
>
> --
>
> Shane
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list