From cc7fbd46ed23a7c73cbd8a17e55e42bdda896b24 Mon Sep 17 00:00:00 2001 From: "Azamat H. Hackimov" Date: Mon, 21 Oct 2024 18:20:32 +0300 Subject: [PATCH] Don't rebuild HogMaker on each commit Remove configure-time dependency get_git_hash that cause to rebuild whole graph of dependencies (like HOG files). --- tools/CMakeLists.txt | 1 - tools/HogMaker/HogMaker.cpp | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 96dc070b..e1e98bec 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -6,7 +6,6 @@ else() HogMaker/HogFormat.cpp HogMaker/HogMaker.cpp ) - add_dependencies(HogMaker get_git_hash) target_include_directories(HogMaker PRIVATE ${PROJECT_BINARY_DIR}/lib) export(TARGETS HogMaker FILE "${CMAKE_BINARY_DIR}/HogMakerConfig.cmake") endif() diff --git a/tools/HogMaker/HogMaker.cpp b/tools/HogMaker/HogMaker.cpp index 0fde353e..1e1ee0ef 100644 --- a/tools/HogMaker/HogMaker.cpp +++ b/tools/HogMaker/HogMaker.cpp @@ -22,7 +22,6 @@ #include #include -#include "d3_version.h" #include "HogFormat.h" // TODO: To our descendants from the future: remove it when code will support C++20 @@ -48,7 +47,7 @@ int main(int argc, char *argv[]) { std::vector input_files; if (argc < 3) { - std::cout << "HogMaker v" << D3_MAJORVER << "." << D3_MINORVER << "." << D3_BUILD << "-g" << D3_GIT_HASH << "\n" + std::cout << "HogMaker - tool for creating Descent3 HOG2 files.\n" << "Usage:\n" << " " << argv[0] << " [search_path]\n" << std::endl;