[CMake] VERSION and SOVERSION in a module

Kristian kristianonline28 at gmail.com
Mon Apr 4 09:59:50 EDT 2016


Thank you for your answer. It helped me a lot.

2016-04-04 12:07 GMT+02:00 Nils Gladitz <nilsgladitz at gmail.com>:
> On 04/04/2016 10:33 AM, Kristian wrote:
>>
>> Hey,
>>
>> I have a question. I have a project, which is compiled on two
>> different build machines with ninja (trunk and branch). The
>> CMakeLists.txt is the same when it comes to a part, where the VERSION
>> and SOVERSION part is set through the function
>> 'set_target_properties'.
>>
>> But on the first build machines, setting the VERSION and SOVERSION
>> works, on the other machine it does not work. On the second machine
>> (where the build fails), I recently upgraded CMake to 3.5 (I compiled
>> and installed it on my own). The first build machine has CMake with
>> version 2.8.11 (installed from local package manager yum).
>>
>> I've tried some things till I got a minimum example, where I could
>> reproduce the error. The problem is calling add_library with MODULE.
>>
>
> This behavior was deliberately changed by:
> https://cmake.org/gitweb?p=cmake.git;a=commit;h=f799ffb5cb895855ac2aba54765622b81db5be38
>
> Which is in CMake since ~3.4.0.
>
> The change is related to this issue:
>     https://cmake.org/Bug/view.php?id=15705
>
> Nils


More information about the CMake mailing list