-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Improve/standardize CMake config file creation #180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Ok. Let us know what you learn. I think we need to remain backward-compatible for older |
The CMake manual contains an explanation of how to create packages: http://www.cmake.org/cmake/help/v3.2/manual/cmake-packages.7.html#creating-packages Directly creating a There should be no compatibility issue for supporting older CMake versions if you switch to creating a |
Sounds great! Could one of you write the patch? |
@rpavlik, if you work on this you could also consider naming the files |
As discussed in Kitware/CMake#144, CMake 3.2 will not distribute a |
For reference, old patches at SF: |
I would like to add one thing, regarding exporting targets.
with this syntax, cmake knows that The change is realy small
The problem is that, existing users after update should write |
That's a pretty big problem. cmake support is only legacy. We use and recommend meson. I'd hate to break old cmake users when new cmake users have a good alternative. |
Spurred by Kitware/CMake#144
Basically, jsoncpp is generating the config file in an "old" or less-preferred way. I tried patching the Find module slated for inclusion in CMake 3.2.0 to be able to bootstrap itself from the config file, but the (somewhat hasty) pull request was (quite reasonably) denied because of dependence on implementation-specific details of exported targets.
Not sure exactly what needs to be done to improve this, but I'll be starting a thread on the CMake mailing list to follow up on that patch.
The text was updated successfully, but these errors were encountered: