]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Rename generated Version.cpp to version.cpp
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 23 Jun 2020 19:57:26 +0000 (21:57 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 23 Jun 2020 20:04:52 +0000 (22:04 +0200)
The convention is to use capitalized filenames for source files that
implement classes and namespaces and lowercase filenames for source
files that do not.

.gitignore
cmake/GenerateVersionFile.cmake
cmake/version.cpp.in [moved from cmake/Version.cpp.in with 100% similarity]
src/CMakeLists.txt

index 9c760f94dcbcc9c22058ef97e1620e7397c7cc97..2601d2dc854e14179d4662bdf87c25da60f18040 100644 (file)
@@ -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*
index 6348ab1fc6cc979648f39c77bde7230e764f269a..83b9558e500ab4a6008c747e9482d99e10835bce 100644 (file)
@@ -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()
similarity index 100%
rename from cmake/Version.cpp.in
rename to cmake/version.cpp.in
index 207513c1a5c041a96d96ba92b2ae1911869451b5..5e1ece50898c7991e202114f3d801e7f5e083af6 100644 (file)
@@ -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)