From: Joel Rosdahl Date: Tue, 23 Jun 2020 19:57:26 +0000 (+0200) Subject: Rename generated Version.cpp to version.cpp X-Git-Tag: v4.0~365 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e82d6e041bf3450e8804797213169c9d5a4b6607;p=thirdparty%2Fccache.git Rename generated Version.cpp to version.cpp The convention is to use capitalized filenames for source files that implement classes and namespaces and lowercase filenames for source files that do not. --- diff --git a/.gitignore b/.gitignore index 9c760f94d..2601d2dc8 100644 --- a/.gitignore +++ b/.gitignore @@ -11,8 +11,9 @@ ccache-*.tar.* perfdir.* testdir.* -# Version is generated into src, because it should be included into src packages -/src/Version.cpp +# version.cpp is generated in src because it should be included into source +# packages +/src/version.cpp # Typical build directories /build* diff --git a/cmake/GenerateVersionFile.cmake b/cmake/GenerateVersionFile.cmake index 6348ab1fc..83b9558e5 100644 --- a/cmake/GenerateVersionFile.cmake +++ b/cmake/GenerateVersionFile.cmake @@ -51,6 +51,8 @@ get_version_from_git() if(VERSION_ERROR) message(STATUS "Not within git repository") else() - configure_file(${CMAKE_SOURCE_DIR}/cmake/Version.cpp.in - ${CMAKE_SOURCE_DIR}/src/Version.cpp @ONLY) + configure_file( + ${CMAKE_SOURCE_DIR}/cmake/version.cpp.in + ${CMAKE_SOURCE_DIR}/src/version.cpp + @ONLY) endif() diff --git a/cmake/Version.cpp.in b/cmake/version.cpp.in similarity index 100% rename from cmake/Version.cpp.in rename to cmake/version.cpp.in diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 207513c1a..5e1ece508 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -36,7 +36,7 @@ set( manifest.cpp result.cpp stats.cpp - Version.cpp) + version.cpp) if(INODE_CACHE_SUPPORTED) list(APPEND source_files InodeCache.cpp)