Use URDE version.h / URDE_DLPACKAGE

This commit is contained in:
Luke Street 2021-03-29 13:22:38 -04:00
parent ce18208b0f
commit 745f66c21e
2 changed files with 2 additions and 3 deletions

View File

@ -30,6 +30,4 @@ if(TARGET nod)
target_compile_definitions(hecl PUBLIC HECL_HAS_NOD=1)
endif()
target_compile_definitions(hecl PRIVATE HECL_DLPACKAGE="${HECL_DLPACKAGE}")
endif()

View File

@ -17,6 +17,7 @@
#include "hecl/Database.hpp"
#include "hecl/Blender/Connection.hpp"
#include "logvisor/logvisor.hpp"
#include "../version.h"
logvisor::Module LogModule("hecl::Driver");
@ -281,7 +282,7 @@ int main(int argc, const char** argv)
#endif
{
if (argc > 1 && !hecl::StrCmp(argv[1], _SYS_STR("--dlpackage"))) {
fmt::print(FMT_STRING("{}\n"), HECL_DLPACKAGE);
fmt::print(FMT_STRING("{}\n"), URDE_DLPACKAGE);
return 100;
}