summaryrefslogtreecommitdiff
path: root/slang.h
diff options
context:
space:
mode:
Diffstat (limited to 'slang.h')
-rw-r--r--slang.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/slang.h b/slang.h
index 0f75c4c95..2f8f8d15d 100644
--- a/slang.h
+++ b/slang.h
@@ -1658,15 +1658,18 @@ extern "C"
void* userData);
/*!
- @brief Get the build version 'tag' string. The string is the same as produced via `git describe --tags`
- for the project. If Slang is built separately from the automated build scripts
- the contents will by default be 'unknown'. Any string can be set by changing the
- contents of 'slang-tag-version.h' file and recompiling the project.
-
- This function will return exactly the same result as the method getBuildTag string on IGlobalSession.
-
- An advantage of using this function over the method is that doing so does not require the creation of
- a session, which can be a fairly costly operation.
+ @brief Get the build version 'tag' string. The string is the same as
+ produced via `git describe --tags --match v*` for the project. If such a
+ version could not be determined at build time then the contents will be
+ 0.0.0-unknown. Any string can be set by passing
+ -DSLANG_VERSION_FULL=whatever during the cmake invocation.
+
+ This function will return exactly the same result as the method
+ getBuildTagString on IGlobalSession.
+
+ An advantage of using this function over the method is that doing so does
+ not require the creation of a session, which can be a fairly costly
+ operation.
@return The build tag string
*/