diff --git a/Meshconvert/CmdLineHelpers.h b/Meshconvert/CmdLineHelpers.h index 2a988e9..b3af3ee 100644 --- a/Meshconvert/CmdLineHelpers.h +++ b/Meshconvert/CmdLineHelpers.h @@ -23,6 +23,10 @@ #include #include +#ifndef TOOL_VERSION +#error Define TOOL_VERSION before including this header +#endif + namespace Helpers { @@ -164,7 +168,7 @@ namespace Helpers if (!*version || wcscmp(version, L"1.0.0.0") == 0) { - swprintf_s(version, L"%03d (library)", DIRECTX_MESH_VERSION); + swprintf_s(version, L"%03d (library)", TOOL_VERSION); } if (versionOnly) diff --git a/Meshconvert/Meshconvert.cpp b/Meshconvert/Meshconvert.cpp index de3a6fa..7d8594b 100644 --- a/Meshconvert/Meshconvert.cpp +++ b/Meshconvert/Meshconvert.cpp @@ -47,6 +47,8 @@ #include #include "Mesh.h" + +#define TOOL_VERSION DIRECTX_MESH_VERSION #include "CmdLineHelpers.h" using namespace Helpers;