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

Hello,

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

Thanks

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 libtesseract.so.5.1.0 to lintesseract.so, it doesn’t work.
For working I need to rename libtesseract.so.5.1.0 to lintesseract.so 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 libtesseract.so

Thanks