diff --git a/.gitignore b/.gitignore index 9c760f94dc..2601d2dc85 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 6348ab1fc6..83b9558e50 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 207513c1a5..5e1ece5089 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)