diff options
author | Adam Oleksy <adam.oleksy@gmail.com> | 2020-05-07 21:22:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-07 12:22:12 -0700 |
commit | e84cbff673b59b37ab52d752679726d204861b33 (patch) | |
tree | 131b143f0755330db1c7f35b5f7d46dfb84db89d /CMake | |
parent | f94e6c84e06e760d58e90ca10909408444ca8546 (diff) | |
download | flatbuffers-e84cbff673b59b37ab52d752679726d204861b33.tar.gz flatbuffers-e84cbff673b59b37ab52d752679726d204861b33.tar.bz2 flatbuffers-e84cbff673b59b37ab52d752679726d204861b33.zip |
Align package name to FindFlatBuffers.cmake (#5899)
This change is for fix warning:
```
CMake Warning (dev) at /home/aoleksy/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
The package name passed to `find_package_handle_standard_args`
(flatbuffers) does not match the name of the calling package (FlatBuffers).
This can lead to problems in calling code that expects `find_package`
result variables (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
FindFlatBuffers.cmake:33 (find_package_handle_standard_args)
CMakeLists.txt:6 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
```
Diffstat (limited to 'CMake')
-rw-r--r-- | CMake/FindFlatBuffers.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMake/FindFlatBuffers.cmake b/CMake/FindFlatBuffers.cmake index aad9a6bf..044cf7c9 100644 --- a/CMake/FindFlatBuffers.cmake +++ b/CMake/FindFlatBuffers.cmake @@ -30,7 +30,7 @@ find_program(FLATBUFFERS_FLATC_EXECUTABLE NAMES flatc) find_path(FLATBUFFERS_INCLUDE_DIR NAMES flatbuffers/flatbuffers.h) include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(flatbuffers +find_package_handle_standard_args(FlatBuffers DEFAULT_MSG FLATBUFFERS_FLATC_EXECUTABLE FLATBUFFERS_INCLUDE_DIR) if(FLATBUFFERS_FOUND) @@ -58,4 +58,4 @@ else() set(FLATBUFFERS_INCLUDE_DIR) endif() -include("${FLATBUFFERS_CMAKE_DIR}/BuildFlatBuffers.cmake")
\ No newline at end of file +include("${FLATBUFFERS_CMAKE_DIR}/BuildFlatBuffers.cmake") |