1 | initial version |
Versioning is added here. So you can modify the cmake file there to not add the version to the filename.
The question you should ask yourself is why you want to link to unversioned libraries.
If you have just one application or library that also distributes the opencv DLL's it isn't that important. But when you start to have multiple applications or libraries (that are all linked to an unversioned DLL) you would have to recompile them all when you want to upgrade opencv. With versioned DLL's library A could be linked against opencv_core2410.dll and application B can be linked agains opencv_core300.dll and both DLL's can be distributed to the client without interfering. Therefore, from extensibility point of view this is usually not advisable.
2 | No.2 Revision |
Versioning is added here. So you can modify the cmake file there to not add the version to the filename.
The question you should ask yourself is why you want to link to unversioned libraries.
If you have just one application or library that also distributes the opencv DLL's it isn't that important. But when you start to have multiple applications or libraries (that are all linked to an unversioned DLL) you would have to recompile them all when you want to upgrade opencv. With versioned DLL's library A could be linked against opencv_core2410.dll and application B can be linked agains opencv_core300.dll and both DLL's can be distributed to the client without interfering.
Therefore, from extensibility point of view this is usually not advisable.interfering.
Therefore, it is advisable to use versions.