Pass branch and sha to compiler

This commit is contained in:
Thomas Krijnen
2021-09-09 09:43:28 +02:00
parent 5f508e9ad8
commit 3bebfcd8a7
2 changed files with 35 additions and 1 deletions
+7 -1
View File
@@ -27,7 +27,13 @@
#ifndef IFCPARSE_H
#define IFCPARSE_H
#define IFCOPENSHELL_VERSION "0.6.0b0"
#include "../ifcparse/macros.h"
#if defined(IFCOPENSHELL_BRANCH) && defined(IFCOPENSHELL_COMMIT)
#define IFCOPENSHELL_VERSION STRINGIFY(IFCOPENSHELL_BRANCH) "-" STRINGIFY(IFCOPENSHELL_COMMIT)
#else
#define IFCOPENSHELL_VERSION "0.7.0"
#endif
#include <string>
#include <sstream>