How to prevent CMake from creating a symlink for shared libraries ?


I make Tesseract-ocr, I obtain on Ubuntu a simlink and a file, is-it possible to prevent versioning and obtain only a file ?
I tried to add in “CMakeLists.txt” line 869 NAMELINK_SKIP but it has no effect.


NAMELINK_SKIP is only relevant for installation (basically to separate them into different components). Why do you care about the symlink?

I can’t use simlink, simlink is not supported on all platforms.
When I rename to, it doesn’t work.
For working I need to rename to and add too libtesseract.5.1.0, I have a duplicate file in my app.

Don’t specify a version: i.e. ensure properties VERSION and SOVERSION are not defined for the target producing the library