From 45baeb32a7db8930cf3dc4f32cb5fefba742c6b5 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Thu, 11 Jul 2024 19:52:54 +0800 Subject: populate slang-tag-version with cmake (#4611) At the moment it is always "unknown" --- source/slang/slang.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/slang.cpp') diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index d601dcd0e..9827f9c5c 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -47,7 +47,7 @@ #include "slang-check-impl.h" -#include "../../slang-tag-version.h" +#include "slang-tag-version.h" #include @@ -124,7 +124,7 @@ namespace Slang { const char* getBuildTagString() { - if (UnownedStringSlice(SLANG_TAG_VERSION) == "unknown") + if (UnownedStringSlice(SLANG_TAG_VERSION) == "0.0.0-unknown") { // If the tag is unknown, then we will try to get the timestamp of the shared library // and use that as the version string, so that we can at least return something -- cgit v1.2.3