Add cmake version file#1493
Add cmake version file#1493rouault merged 1 commit intouclouvain:masterfrom domin144:cmake_version_file
Conversation
|
cmake/OpenJPEGConfigVersion.cmake.in is copied from cmake sources, covered by 3-clause BSD license. They have no copyright header and cmake documentation says "they can be used as starting point to create more sophisticated custom ConfigVersion.cmake files"[1], so not sure if we should bother. [1] https://cmake.org/cmake/help/latest/module/CMakePackageConfigHelpers.html |
|
@mayeut does that look good to you ? |
|
One more doubt. I used |
it is not |
|
I believe we should just remove support for CMake < 3.0. Newer CMake versions are actually going to remove support for CMake < 3.5 soon. That way we could remove cmake/OpenJPEGConfigVersion.cmake.in |
|
If dropping support for old cmake is an option, I would be really happy with that. |
would you be interested in tackling that?
indeed |
|
I will try to find some time this week to make PR removing support for cmake < 3.5. |
|
Rebased. |
Add the missing cmake version file, so that software using the library can check for version compatibility.