Ask Your Question
1

CMake option to remove version number from libraries

asked 2013-03-20 22:21:12 -0600

tannen gravatar image

I am using CMake on Windows and Visual Studio 10 to build OpenCV. I would like to build OpenCV without the version being part of the library name. Currently I get: opencv_core244d.lib and I would like to get opencv_cored.lib. While I can do this in a script, I'd like to see how I can configure CMake to do this.

Any thoughts?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2013-03-21 08:33:31 -0600

F_Michele gravatar image

updated 2013-03-21 08:34:18 -0600

you can try putting -avoid-version or --avoid-version in CMAKE_SHARED_LINKER_FLAGS or any related variable

edit flag offensive delete link more

Comments

Thanks for your comment. I can't get this to work. I'm using the CMake GUI and I'm building static libraries. The configure process removes this option. I might just stick with my script to remove the version number. I appreciate your help! Thanks.

tannen gravatar imagetannen ( 2013-03-21 12:57:41 -0600 )edit

Question Tools

Stats

Asked: 2013-03-20 22:21:12 -0600

Seen: 1,192 times

Last updated: Mar 21 '13