-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
CMake FindFlatBuffers.cmake vs FlatbuffersConfig.cmake #7323
Comments
Sure, PRs are welcome |
dbaileychess
pushed a commit
that referenced
this issue
Aug 6, 2022
sssooonnnggg
pushed a commit
to sssooonnnggg/flatbuffers
that referenced
this issue
Aug 8, 2022
* CMake find_package fixes (google#7323) Rename FlatbuffersConfigVersion.cmake to match CMake project name * CMake find_package fixes (google#7323) Rename FlatBuffersTargets to match CMake project name
This was referenced Aug 31, 2022
jochenparm
pushed a commit
to jochenparm/flatbuffers
that referenced
this issue
Oct 29, 2024
* CMake find_package fixes (google#7323) Rename FlatbuffersConfigVersion.cmake to match CMake project name * CMake find_package fixes (google#7323) Rename FlatBuffersTargets to match CMake project name
jochenparm
pushed a commit
to jochenparm/flatbuffers
that referenced
this issue
Oct 29, 2024
* CMake find_package fixes (google#7323) Rename FlatbuffersConfigVersion.cmake to match CMake project name * CMake find_package fixes (google#7323) Rename FlatBuffersTargets to match CMake project name
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi all,
I have noticed an inconsistency in the CMake handling around the find_package mechanism.
If I use the FindFlatBuffers.cmake file I need to include it like this:
find_package(FlatBuffers)
and if I want to use the config mode of the find_package mechanism I need to dofind_package(Flatbuffers CONFIG)
.According to the CMake find_package documentation the typical lookup is for
<lowercasePackageName>-config.cmake
or<PackageName>Config.cmake
Noticed the same with the generated
FlatbuffersTargets.cmake
.I have already made the changes and would be happy to provide a PR if we agree that this needs to be changed.
The text was updated successfully, but these errors were encountered: