# Cmake question

**URL:** <https://www.ruby-forum.com/t/cmake-question/242596>\
**Category:** GNU Radio\
**Created:** [July 6, 2015, 1:02pm UTC](https://www.ruby-forum.com/t/cmake-question/242596 "2015-07-06T13:02:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [July 6, 2015, 1:02pm UTC](https://www.ruby-forum.com/t/cmake-question/242596/1 "2015-07-06T13:02:34Z")

</div>

I need to modify the SONAME of some gnuradio libs.

In the gnuradio/volk/CMakeList.txt there is an entry

set\_target\_properties(volk PROPERTIES SOVERSION ${LIBVER})

that sets the SONAME. But how is this done for other libs like  
gnuradio-runtime or gnuradio-pmt.  
I did not identfy the statements doing this.

Thanks in advance

– Volker

---

<div class="post-metadata">

**Author:** ![Volker\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b5a626/32.png) [@Volker\_S](https://www.ruby-forum.com/u/Volker_S)\
**Post date:** [July 6, 2015, 3:13pm UTC](https://www.ruby-forum.com/t/cmake-question/242596/2 "2015-07-06T15:13:26Z")

</div>

Hi Volker - Actually, the command you quote just sets the -version- of  
the library, not the name. The name is set by default as the target  
name, though one can change the name to something else via a similar  
set\_target\_properties command. Hope this helps! - MLD

---

<div class="post-metadata">

**Author:** ![Volker\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b5a626/32.png) [@Volker\_S](https://www.ruby-forum.com/u/Volker_S)\
**Post date:** [July 6, 2015, 5:43pm UTC](https://www.ruby-forum.com/t/cmake-question/242596/3 "2015-07-06T17:43:36Z")

</div>

Michael, thank you for the quick response.  
My question was a bit misleading. I don’t want to modify the library  
name but the version number.  
In the volk directory I found the correspondent entry

set\_target\_properties(volk PROPERTIES SOVERSION ${LIBVER})

in the gnuradio-runtime/lib/CMakeFile.txt

Which command sets the version number to 0.0.0

–Volker

---

<div class="post-metadata">

**Author:** ![Volker\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b5a626/32.png) [@Volker\_S](https://www.ruby-forum.com/u/Volker_S)\
**Post date:** [July 7, 2015, 7:44am UTC](https://www.ruby-forum.com/t/cmake-question/242596/4 "2015-07-07T07:44:21Z")

</div>

Now I got it.  
In GrMiscutils.cmake the SOVERSION is set.

Thanks to all.

– Volker

Am 06.07.2015 um 17:41 schrieb Volker S.:

---

<div class="post-metadata">

**Author:** ![Volker\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b5a626/32.png) [@Volker\_S](https://www.ruby-forum.com/u/Volker_S)\
**Post date:** [July 6, 2015, 6:35pm UTC](https://www.ruby-forum.com/t/cmake-question/242596/5 "2015-07-06T18:35:02Z")

</div>

On Mon, Jul 6, 2015 at 11:41 AM, Volker S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Which command sets the version number to 0.0.0
> 
> –Volker

volk/cmake/Modules/VolkVersion.cmake sets LIBVER. Two things:

a) It shouldn’t be 0.0.0 at this point.  
b) This is mostly the same file as  
gnuradio/cmake/Modules/GrVersion.cmake  
but I cut out a version number because VOLK is a much smaller project  
than  
GNU Radio and requires less version info.
