# How to compile the linux target without symlinks?

**URL:** <https://discourse.itk.org/t/how-to-compile-the-linux-target-without-symlinks/7755>\
**Category:** Beginner Questions\
**Created:** [April 28, 2026, 2:47am UTC](https://discourse.itk.org/t/how-to-compile-the-linux-target-without-symlinks/7755 "2026-04-28T02:47:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rosie](https://discourse.itk.org/user_avatar/discourse.itk.org/rosie/32/4585_2.png) [@Rosie](https://discourse.itk.org/u/Rosie)\
**Post date:** [April 28, 2026, 2:47am UTC](https://discourse.itk.org/t/how-to-compile-the-linux-target-without-symlinks/7755/1 "2026-04-28T02:47:46Z")

</div>

Dear developers,

I would like to compile the linux target of ITK 5.4 by Cmake. It will create symlink binaries (.so and .so.1) which are not supported by windows system. So I wonder if it can be compiled without symlinks?

Best,  
Rosie

---

<div class="post-metadata">

**Author:** ![Rosie](https://discourse.itk.org/user_avatar/discourse.itk.org/rosie/32/4585_2.png) [@Rosie](https://discourse.itk.org/u/Rosie)\
**Post date:** [April 28, 2026, 10:05am UTC](https://discourse.itk.org/t/how-to-compile-the-linux-target-without-symlinks/7755/2 "2026-04-28T10:05:02Z")

</div>

I attempted to comment out these two lines in ITKModuleMacros.cmake:

```auto
macro(itk_module_target_name _name)
  if(NOT
     ${CMAKE_SYSTEM_NAME}
     MATCHES
     "OpenBSD")
    #set_property(TARGET ${_name} PROPERTY VERSION 1)
    #set_property(TARGET ${_name} PROPERTY SOVERSION 1)
  endif(

```

Some binary targets do not have a generated version number, but for example: the target libMritkgdcmsocketxx-5.4.so.1.2.0 is still generated with a version number.
