summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChris Langhans <chris@langhans.dev>2022-08-06 07:19:17 +0200
committerGitHub <noreply@github.com>2022-08-05 22:19:17 -0700
commitaa395e5a59524892cf514e89ad91bfe9e02a0462 (patch)
treea9e2b0a81975131540b91ee6456d2dd558c09629 /CMakeLists.txt
parent32328075d87d0bd7346877570edaa65d8ad08e2c (diff)
downloadflatbuffers-aa395e5a59524892cf514e89ad91bfe9e02a0462.tar.gz
flatbuffers-aa395e5a59524892cf514e89ad91bfe9e02a0462.tar.bz2
flatbuffers-aa395e5a59524892cf514e89ad91bfe9e02a0462.zip
(#7323) Rename CMake files according to project name (#7378)
* CMake find_package fixes (#7323) Rename FlatbuffersConfigVersion.cmake to match CMake project name * CMake find_package fixes (#7323) Rename FlatBuffersTargets to match CMake project name
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt18
1 files changed, 9 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2cff0515..ff881c05 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -645,21 +645,21 @@ if(FLATBUFFERS_INSTALL)
set(FB_CMAKE_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/flatbuffers")
- configure_file(CMake/FlatbuffersConfigVersion.cmake.in FlatbuffersConfigVersion.cmake @ONLY)
+ configure_file(CMake/FlatBuffersConfigVersion.cmake.in FlatBuffersConfigVersion.cmake @ONLY)
install(
- FILES "CMake/FlatbuffersConfig.cmake" "${CMAKE_CURRENT_BINARY_DIR}/FlatbuffersConfigVersion.cmake"
+ FILES "CMake/FlatBuffersConfig.cmake" "${CMAKE_CURRENT_BINARY_DIR}/FlatBuffersConfigVersion.cmake"
DESTINATION ${FB_CMAKE_DIR}
)
if(FLATBUFFERS_BUILD_FLATLIB)
install(
- TARGETS flatbuffers EXPORT FlatbuffersTargets
+ TARGETS flatbuffers EXPORT FlatBuffersTargets
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
- install(EXPORT FlatbuffersTargets
- FILE FlatbuffersTargets.cmake
+ install(EXPORT FlatBuffersTargets
+ FILE FlatBuffersTargets.cmake
NAMESPACE flatbuffers::
DESTINATION ${FB_CMAKE_DIR}
)
@@ -681,7 +681,7 @@ if(FLATBUFFERS_INSTALL)
if(FLATBUFFERS_BUILD_SHAREDLIB)
install(
- TARGETS flatbuffers_shared EXPORT FlatbuffersSharedTargets
+ TARGETS flatbuffers_shared EXPORT FlatBuffersSharedTargets
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
@@ -689,8 +689,8 @@ if(FLATBUFFERS_INSTALL)
)
install(
- EXPORT FlatbuffersSharedTargets
- FILE FlatbuffersSharedTargets.cmake
+ EXPORT FlatBuffersSharedTargets
+ FILE FlatBuffersSharedTargets.cmake
NAMESPACE flatbuffers::
DESTINATION ${FB_CMAKE_DIR}
)
@@ -752,4 +752,4 @@ add_library(FlatBuffers::FlatBuffers ALIAS FlatBuffers)
target_include_directories(
FlatBuffers
INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
- $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/include>) \ No newline at end of file
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/include>)