# ITK 4.13.2 build creates 4.13.1 libs

**URL:** https://discourse.itk.org/t/itk-4-13-2-build-creates-4-13-1-libs/3270
**Category:** Engineering
**Created:** [July 8, 2020, 9:33pm UTC](https://discourse.itk.org/t/itk-4-13-2-build-creates-4-13-1-libs/3270 "2020-07-08T21:33:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![warfield](https://discourse.itk.org/letter_avatar_proxy/v4/letter/w/8edcca/32.png) [@warfield](https://discourse.itk.org/u/warfield)
#### Post date: [July 8, 2020, 9:33pm UTC](https://discourse.itk.org/t/itk-4-13-2-build-creates-4-13-1-libs/3270/1 "2020-07-08T21:33:42Z")

</div>

When I build the InsightToolkit 4.13.2 release, the libraries that are created are labelled version 4.13.1.  
Any idea what is going wrong ?

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [July 8, 2020, 10:19pm UTC](https://discourse.itk.org/t/itk-4-13-2-build-creates-4-13-1-libs/3270/2 "2020-07-08T22:19:40Z")

</div>

You might need to do a clean build. The [version](https://github.com/InsightSoftwareConsortium/ITK/blob/release-4.13/CMakeLists.txt#L27) seems to be properly set.

---

<div class="post-metadata">

### Author: ![warfield](https://discourse.itk.org/letter_avatar_proxy/v4/letter/w/8edcca/32.png) [@warfield](https://discourse.itk.org/u/warfield)
#### Post date: [July 9, 2020, 5:28pm UTC](https://discourse.itk.org/t/itk-4-13-2-build-creates-4-13-1-libs/3270/3 "2020-07-09T17:28:05Z")

</div>

It seems at the cmake configuration stage the patch version number is not always being used to construct the expected file names.

Here is a small script to reproduce the issue.

```auto
#!/bin/sh

git clone -b release-4.13 https://github.com/InsightSoftwareConsortium/ITK

dest=`pwd`/dest
mkdir ${dest}

mkdir build
cd build

cmake \
    -DCMAKE_INSTALL_PREFIX=${dest} \
    -DBUILD_EXAMPLES:BOOL=OFF \
    -DBUILD_TESTING:BOOL=OFF \
    -DBUILD_SHARED_LIBS:BOOL=ON \
    -DCMAKE_BUILD_TYPE:STRING=Release \
    -DCMAKE_CXX_FLAGS_RELEASE:STRING="-O3 -DNDEBUG" \
    ../ITK

make

exit 0

```

---

<div class="post-metadata">

### Author: ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)
#### Post date: [July 14, 2020, 4:03pm UTC](https://discourse.itk.org/t/itk-4-13-2-build-creates-4-13-1-libs/3270/4 "2020-07-14T16:03:52Z")

</div>

@warfield thanks for the nice reproducible script.

The file names are currently created as intended:

```auto
[...]
libITKSpatialObjects-4.13.so
libITKSpatialObjects-4.13.so.1
[...]

```

To explain, the trailing `.1` is always `.1` and does not change with the patch version.
