# Update boost in common-superbuild?

**URL:** https://discourse.paraview.org/t/update-boost-in-common-superbuild/2549
**Category:** Development
**Created:** [September 12, 2019, 3:34pm UTC](https://discourse.paraview.org/t/update-boost-in-common-superbuild/2549 "2019-09-12T15:34:32Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![aron.helser](https://discourse.paraview.org/user_avatar/discourse.paraview.org/aron.helser/32/13_2.png) [@aron.helser](https://discourse.paraview.org/u/aron.helser)
#### Post date: [September 12, 2019, 3:34pm UTC](https://discourse.paraview.org/t/update-boost-in-common-superbuild/2549/1 "2019-09-12T15:34:32Z")

</div>

Hi all,  
In working on CMB superbuild, we’ve discovered that boost 1.70+ is recommended for compiling with Visual Studio 2019. Can we update boost in the common-superbuild, which would affect ParaView ?  
One of the motivations is that the win32/boost-no-junction-test.patch now fails with boost 1.70, and would need to be updated.  
Thanks,  
Aron

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [September 12, 2019, 4:51pm UTC](https://discourse.paraview.org/t/update-boost-in-common-superbuild/2549/2 "2019-09-12T16:51:47Z")

</div>

It will indeed impact ParaView, but feel free to update and fix the ParaView SB as needed, if at all. Hopefully, things go smoothly.

---

<div class="post-metadata">

### Author: ![aron.helser](https://discourse.paraview.org/user_avatar/discourse.paraview.org/aron.helser/32/13_2.png) [@aron.helser](https://discourse.paraview.org/u/aron.helser)
#### Post date: [September 12, 2019, 5:52pm UTC](https://discourse.paraview.org/t/update-boost-in-common-superbuild/2549/3 "2019-09-12T17:52:54Z")

</div>

Thanks, I’ll give it a go!

---

<div class="post-metadata">

### Author: ![Aaron\_Bray](https://discourse.paraview.org/user_avatar/discourse.paraview.org/aaron_bray/32/2034_2.png) [@Aaron\_Bray](https://discourse.paraview.org/u/Aaron_Bray)
#### Post date: [September 16, 2019, 4:08pm UTC](https://discourse.paraview.org/t/update-boost-in-common-superbuild/2549/4 "2019-09-16T16:08:31Z")

</div>

I am looking at doing this update with Aron,  
Is there a way in the CMake system to get the boost version to be used in order to figure out the correct bjam patch to use as the syntax has changes between versions?

Specifically the syntax for the no-junction patch on windows seems to have changed with 1.70

Not sure of a nice way to figure out which patch file to use since boost versions can be overridden.

---

<div class="post-metadata">

### Author: ![aron.helser](https://discourse.paraview.org/user_avatar/discourse.paraview.org/aron.helser/32/13_2.png) [@aron.helser](https://discourse.paraview.org/u/aron.helser)
#### Post date: [September 16, 2019, 4:32pm UTC](https://discourse.paraview.org/t/update-boost-in-common-superbuild/2549/5 "2019-09-16T16:32:10Z")

</div>

I wonder if we could just try them both and use whichever one succeeded? I don’t know how to do this with cmake…

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [September 16, 2019, 5:13pm UTC](https://discourse.paraview.org/t/update-boost-in-common-superbuild/2549/6 "2019-09-16T17:13:06Z")

</div>

If Boost is found, `Boost_VERSION_STRING` should be defined. See the [FindBoost.cmake docs](https://github.com/Kitware/CMake/blob/master/Modules/FindBoost.cmake) for more.

---

<div class="post-metadata">

### Author: ![Aaron\_Bray](https://discourse.paraview.org/user_avatar/discourse.paraview.org/aaron_bray/32/2034_2.png) [@Aaron\_Bray](https://discourse.paraview.org/u/Aaron_Bray)
#### Post date: [September 16, 2019, 5:28pm UTC](https://discourse.paraview.org/t/update-boost-in-common-superbuild/2549/7 "2019-09-16T17:28:21Z")

</div>

The bjam patch command line is being built at configuration of the super build.  
Boost has been downloaded, so it cannot be found.

I am looking to edit patch code in the projects/win32/boost.cmake file
