From 6fa45666703add49f77652b2eadd874d49aedaf6 Mon Sep 17 00:00:00 2001 From: costan Date: Fri, 23 Mar 2018 13:02:10 -0700 Subject: [PATCH] Rename CMake project / targets from Leveldb to leveldb. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=190262375 --- CMakeLists.txt | 18 +++++++++--------- cmake/LeveldbConfig.cmake | 1 - cmake/leveldbConfig.cmake | 1 + 3 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 cmake/LeveldbConfig.cmake create mode 100644 cmake/leveldbConfig.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index ca43d7e..271caa7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ # found in the LICENSE file. See the AUTHORS file for names of contributors. cmake_minimum_required(VERSION 3.9) -project(Leveldb VERSION 1.21.0 LANGUAGES C CXX) +project(leveldb VERSION 1.21.0 LANGUAGES C CXX) # This project can use C11, but will gracefully decay down to C89. set(CMAKE_C_STANDARD 11) @@ -372,7 +372,7 @@ endif(LEVELDB_BUILD_BENCHMARKS) if(LEVELDB_INSTALL) include(GNUInstallDirs) install(TARGETS leveldb - EXPORT LeveldbTargets + EXPORT leveldbTargets RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} @@ -399,18 +399,18 @@ if(LEVELDB_INSTALL) include(CMakePackageConfigHelpers) write_basic_package_version_file( - "${PROJECT_BINARY_DIR}/LeveldbConfigVersion.cmake" + "${PROJECT_BINARY_DIR}/leveldbConfigVersion.cmake" COMPATIBILITY SameMajorVersion ) install( - EXPORT LeveldbTargets - NAMESPACE Leveldb:: - DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/Leveldb" + EXPORT leveldbTargets + NAMESPACE leveldb:: + DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/leveldb" ) install( FILES - "${PROJECT_SOURCE_DIR}/cmake/LeveldbConfig.cmake" - "${PROJECT_BINARY_DIR}/LeveldbConfigVersion.cmake" - DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/Leveldb" + "${PROJECT_SOURCE_DIR}/cmake/leveldbConfig.cmake" + "${PROJECT_BINARY_DIR}/leveldbConfigVersion.cmake" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/leveldb" ) endif(LEVELDB_INSTALL) diff --git a/cmake/LeveldbConfig.cmake b/cmake/LeveldbConfig.cmake deleted file mode 100644 index 8f3e78b..0000000 --- a/cmake/LeveldbConfig.cmake +++ /dev/null @@ -1 +0,0 @@ -include("${CMAKE_CURRENT_LIST_DIR}/LeveldbTargets.cmake") diff --git a/cmake/leveldbConfig.cmake b/cmake/leveldbConfig.cmake new file mode 100644 index 0000000..eea6e5c --- /dev/null +++ b/cmake/leveldbConfig.cmake @@ -0,0 +1 @@ +include("${CMAKE_CURRENT_LIST_DIR}/leveldbTargets.cmake")