File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 9292/// @hideinitializer
9393#define OPENVDB_LIBRARY_VERSION_NUMBER ${OPENVDB_PACKED_VERSION}
9494
95+ /// @brief Where this version was compiled from if it comes from a
96+ /// git repo.
97+ #define OPENVDB_PACKAGE_URL "@OPENVDB_PACKAGE_URL@"
98+ #define OPENVDB_PACKAGE_REVISION "@OPENVDB_PACKAGE_REVISION@"
99+
95100/// @brief The version namespace name for this library version
96101/// @hideinitializer
97102///
@@ -256,6 +261,8 @@ inline constexpr const char* getLibraryVersionString() { return OPENVDB_LIBRARY_
256261inline constexpr const char * getLibraryAbiVersionString () {
257262 return OPENVDB_LIBRARY_ABI_VERSION_STRING ;
258263}
264+ inline constexpr const char * getPackageUrl () { return OPENVDB_PACKAGE_URL ; }
265+ inline constexpr const char * getPackageRevision () { return OPENVDB_PACKAGE_REVISION ; }
259266
260267
261268struct VersionId {
Original file line number Diff line number Diff line change 1+ Build:
2+ - Add a placeholder to inject the specific revision and URL used
3+ to build OpenVDB, useful for 3rd party build scripts to publish
4+ their exact versions.
You can’t perform that action at this time.
0 commit comments