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).
This commit is contained in:
Azamat H. Hackimov 2024-10-21 18:20:32 +03:00
parent 46c6b55f5c
commit cc7fbd46ed
2 changed files with 1 additions and 3 deletions

View File

@ -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()

View File

@ -22,7 +22,6 @@
#include <fstream>
#include <string>
#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<std::filesystem::path> 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] << " <hogfile.hog> <inputfile.txt> [search_path]\n"
<< std::endl;