.cmake files are named wrong

Asked by no name

After installing libflatbuffers-dev under ubuntu 20 the cmakes files are installed like this:
libflatbuffers-dev: /usr/lib/x86_64-linux-gnu/cmake/flatbuffers/FlatbuffersConfig.cmake
libflatbuffers-dev: /usr/lib/x86_64-linux-gnu/cmake/flatbuffers/FlatbuffersConfigVersion.cmake
libflatbuffers-dev: /usr/lib/x86_64-linux-gnu/cmake/flatbuffers/FlatbuffersSharedTargets-none.cmake
libflatbuffers-dev: /usr/lib/x86_64-linux-gnu/cmake/flatbuffers/FlatbuffersSharedTargets.cmake
libflatbuffers-dev: /usr/lib/x86_64-linux-gnu/cmake/flatbuffers/FlatbuffersTargets-none.cmake
libflatbuffers-dev: /usr/lib/x86_64-linux-gnu/cmake/flatbuffers/FlatbuffersTargets.cmake

cmake searches here:
Checking prefix [/usr/local/]
Checking file [/usr/local/flatbuffersConfig.cmake]
Checking file [/usr/local/flatbuffers-config.cmake]
Checking prefix [/usr/]
Checking file [/usr/flatbuffersConfig.cmake]
Checking file [/usr/flatbuffers-config.cmake]
Checking file [/usr/lib/x86_64-linux-gnu/cmake/flatbuffers/flatbuffersConfig.cmake]
Checking file [/usr/lib/x86_64-linux-gnu/cmake/flatbuffers/flatbuffers-config.cmake]
Checking prefix [/]
Checking file [/flatbuffersConfig.cmake]
Checking file [/flatbuffers-config.cmake]
Checking file [/lib/x86_64-linux-gnu/cmake/flatbuffers/flatbuffersConfig.cmake]
Checking file [/lib/x86_64-linux-gnu/cmake/flatbuffers/flatbuffers-config.cmake]
Checking prefix [/usr/games/]
Checking file [/usr/games/flatbuffersConfig.cmake]
Checking file [/usr/games/flatbuffers-config.cmake]
Checking prefix [/usr/local/games/]
Checking file [/usr/local/games/flatbuffersConfig.cmake]
Checking file [/usr/local/games/flatbuffers-config.cmake]
Checking prefix [/snap/]
Checking prefix [/usr/X11R6/]
Checking prefix [/usr/pkg/]
Checking prefix [/opt/]
Checking file [/opt/flatbuffersConfig.cmake]
Checking file [/opt/flatbuffers-config.cmake]

It searches for flatbuffersConfig.cmake and not FlatbuffersConfig.cmake, the case of the first letter is wrong.
How can this be fixed?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu flatbuffers Edit question
Assignee:
No assignee Edit question
Solved by:
no name
Solved:
Last query:
Last reply:
Revision history for this message
no name (mvf) said :
#1