-
Notifications
You must be signed in to change notification settings - Fork 109
Description
Would it be possible to add auto-generation of CMake config files (i.e., with configure_package_config_file()/write_basic_package_version_file()/etc.) to avoid the need for CMake's built-in FindJasper.cmake? It would be helpful for Jasper to provide info itself to downstream CMake projects so that exact build options, dependencnesi, etc. can be determined without having to separately use pkgconfig-- I suppose one alternative could be to add pkgconfig invocations to FindJasper.cmake, but using CMake-based configuration is probably lower maintenance long term, and would put control of it directly under jasper.
The motivating issue here is that FindJasper.cmake fails when jasper is built with JAS_ENABLE_LIBJPEG=OFF: https://gitlab.kitware.com/cmake/cmake/-/issues/26915
I'll keep looking into a workaround on the CMake end, but it would be great to avoid the need for FindJasper.cmake altogether. If it would be helpful, I'm happy to point to examples of CMake-generated CMake config files, probably 90%+ of the scripting could be copied and pasted.
(for my own reference, my test setup here is on gaea at ~/stack-stack-jasper-398/)