# release vs master branch VTK\_MAJOR\_VERSION / VTK\_MINOR\_VERSION

**URL:** https://discourse.vtk.org/t/release-vs-master-branch-vtk-major-version-vtk-minor-version/3557
**Category:** Development
**Created:** [June 15, 2020, 5:15pm UTC](https://discourse.vtk.org/t/release-vs-master-branch-vtk-major-version-vtk-minor-version/3557 "2020-06-15T17:15:48Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![seanm](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/a88e4f/32.png) [@seanm](https://discourse.vtk.org/u/seanm)
#### Post date: [June 15, 2020, 5:15pm UTC](https://discourse.vtk.org/t/release-vs-master-branch-vtk-major-version-vtk-minor-version/3557/1 "2020-06-15T17:15:48Z")

</div>

Hi all,

It seems that VTK\_MAJOR\_VERSION and VTK\_MINOR\_VERSION are currently 9.0 in both the release and master branch.

Shouldn’t master be incremented by now?

I’m not aware of how/when this is done, but their being the same is causing us problems because there are backwards incompatible changes in master that we need to add #ifs in our app to be able to build our app against both branches.

Thanks,

Sean

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [June 15, 2020, 5:45pm UTC](https://discourse.vtk.org/t/release-vs-master-branch-vtk-major-version-vtk-minor-version/3557/2 "2020-06-15T17:45:11Z")

</div>

The patch version on master is in the stratosphere (20200615). It will be 9.1 once we have a 9.1.0 (otherwise you have a negative patch number and no one wants to think about such things).

---

<div class="post-metadata">

### Author: ![seanm](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/a88e4f/32.png) [@seanm](https://discourse.vtk.org/u/seanm)
#### Post date: [June 16, 2020, 12:09am UTC](https://discourse.vtk.org/t/release-vs-master-branch-vtk-major-version-vtk-minor-version/3557/3 "2020-06-16T00:09:50Z")

</div>

Ben,

So, concretely, if in my app I’m trying to conditionalize a workaround for VTK bug #17907, which was fixed in both release and master on 2020-06-12, how could I do that?

It seems to me for the master branch I could do:

`#if (VTK_VERSION_NUMBER > VTK_VERSION_CHECK(9, 0, 20200612))`

but if there’s no number that auto-increments on the release branch, there’s no way to do anything similar, right? And even when 9.0.1 is released, it will still be \< 9.0.20200612.

Thanks,

Sean

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [June 16, 2020, 12:36am UTC](https://discourse.vtk.org/t/release-vs-master-branch-vtk-major-version-vtk-minor-version/3557/4 "2020-06-16T00:36:48Z")

</div>

You can also check for 9.0.1.

```auto
// A bugfix was backported to 9.0.1 and merged to master as well.
#if VTK_VERSION_NUMBER == VTK_VERSION_CHECK(9, 0, 1) || \
    VTK_VERSION_NUMBER >= VTK_VERSION_CHECK(9, 0, 20200612)

```

---

<div class="post-metadata">

### Author: ![seanm](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/a88e4f/32.png) [@seanm](https://discourse.vtk.org/u/seanm)
#### Post date: [June 16, 2020, 1:45am UTC](https://discourse.vtk.org/t/release-vs-master-branch-vtk-major-version-vtk-minor-version/3557/5 "2020-06-16T01:45:26Z")

</div>

But this would evaluate to false for 9.0.2.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [June 16, 2020, 2:02am UTC](https://discourse.vtk.org/t/release-vs-master-branch-vtk-major-version-vtk-minor-version/3557/6 "2020-06-16T02:02:12Z")

</div>

Indeed. Hmm. You could bound it on `9.0.1 <= x < 9.0.20200101`. We can’t really use 9.1.0 yet because then you have the ambiguity of “9.1.0-in-development” vs “9.1.0-the-release”.
