# Did VTK\_CUSTOM\_LIBRARY\_SUFFIX build option go away?

**URL:** https://discourse.vtk.org/t/did-vtk-custom-library-suffix-build-option-go-away/220
**Category:** Development
**Created:** [February 5, 2019, 6:40pm UTC](https://discourse.vtk.org/t/did-vtk-custom-library-suffix-build-option-go-away/220 "2019-02-05T18:40:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![seanm](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/a88e4f/32.png) [@seanm](https://discourse.vtk.org/u/seanm)
#### Post date: [February 5, 2019, 6:40pm UTC](https://discourse.vtk.org/t/did-vtk-custom-library-suffix-build-option-go-away/220/1 "2019-02-05T18:40:52Z")

</div>

Hi all,

Did the VTK\_CUSTOM\_LIBRARY\_SUFFIX option go away? I created a new folder and used cmake to configure VTK (git master), but even in ‘advanced mode’ I don’t see it there.

Cheers,

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [February 5, 2019, 7:48pm UTC](https://discourse.vtk.org/t/did-vtk-custom-library-suffix-build-option-go-away/220/2 "2019-02-05T19:48:57Z")

</div>

Yeah, I probably missed making this a public option. See the `LIBRARY_NAME_SUFFIX` argument to `vtk_module_build` at the top-level `CMakeLists.txt`. Should probably be something like:

```auto
set(VTK_CUSTOM_LIBRARY_SUFFIX "<DEFAULT>"
  CACHE STRING "Custom library suffix (defaults to ${VTK_MAJOR_VERSION}.${VTK_MINOR_VERSION}")
mark_as_advanced(VTK_CUSTOM_LIBRARY_SUFFIX)
if (VTK_CUSTOM_LIBRARY_SUFFIX STREQUAL "<DEFAULT>")
  set(VTK_CUSTOM_LIBRARY_SUFFIX "${VTK_MAJOR_VERSION}.${VTK_MINOR_VERSION}")
endif ()

```

Note that the default value shouldn’t be used in the cache variable literally otherwise version bumps don’t affect the already-cached value in an old build.

---

<div class="post-metadata">

### Author: ![seanm](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/a88e4f/32.png) [@seanm](https://discourse.vtk.org/u/seanm)
#### Post date: [February 7, 2019, 8:29pm UTC](https://discourse.vtk.org/t/did-vtk-custom-library-suffix-build-option-go-away/220/3 "2019-02-07T20:29:27Z")

</div>

OK, here’s a patch:

[https://gitlab.kitware.com/vtk/vtk/merge\_requests/5166](https://gitlab.kitware.com/vtk/vtk/merge_requests/5166)

Also, is it normal to get file names like below?:

libvtkChartsCore-8.90.8.90.0.a

After the patch above, I get names like:

libvtkChartsCore-8.90.a

so I think something else is adding these things twice.

Sean

---

<div class="post-metadata">

### Author: ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)
#### Post date: [February 13, 2019, 9:47am UTC](https://discourse.vtk.org/t/did-vtk-custom-library-suffix-build-option-go-away/220/4 "2019-02-13T09:47:05Z")

</div>

I just noticed this today also, see: [Version is repeated in the Linux library .so.0 files](https://discourse.vtk.org/t/version-is-repeated-in-the-linux-library-so-0-files/266)
