# Updating minimum required version of CMake to 3.13

**URL:** <https://discourse.slicer.org/t/updating-minimum-required-version-of-cmake-to-3-13/6012>\
**Category:** Development\
**Tags:** build\
**Created:** [March 4, 2019, 6:33pm UTC](https://discourse.slicer.org/t/updating-minimum-required-version-of-cmake-to-3-13/6012 "2019-03-04T18:33:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![phcerdan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/phcerdan/32/1559_2.png) [@phcerdan](https://discourse.slicer.org/u/phcerdan)\
**Post date:** [March 4, 2019, 6:33pm UTC](https://discourse.slicer.org/t/updating-minimum-required-version-of-cmake-to-3-13/6012/1 "2019-03-04T18:33:08Z")

</div>

We plan on updating the minimum required version of CMake to 3.13, this will allow simplifying a lot of CMake logic.

It is a good opportunity to update now while we are working toward Slicer 5 which will introduce C++11 features and support for ITKv5.

Ubuntu 18.04 LTS CMake version is too old already (3.10.2 at the time of writing this). Ubuntu 19.04 uses 3.13.4.

Windows and macOS users install CMake from binaries or homebrew, so it is not a problem for those users. Other Linux distros update CMake regularly. For Ubuntu LTS and other linux distribution users, they can download and install from binaries

Work-in-progress PR introducing the changes: [1095](https://github.com/Slicer/Slicer/pull/1095)

Co-authored by @jcfr

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [March 5, 2019, 1:24am UTC](https://discourse.slicer.org/t/updating-minimum-required-version-of-cmake-to-3-13/6012/2 "2019-03-05T01:24:32Z")

</div>

Thanks @phcerdan 👍

To follow up, starting with Slicer [r27988](http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=27988), CMake \>= 3.13.4 is now required.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 5, 2019, 2:37am UTC](https://discourse.slicer.org/t/updating-minimum-required-version-of-cmake-to-3-13/6012/3 "2019-03-05T02:37:28Z")

</div>

Thanks for the update. Could you please review/update the [Slicer build instructions](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions) accordingly?

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [March 5, 2019, 3:20am UTC](https://discourse.slicer.org/t/updating-minimum-required-version-of-cmake-to-3-13/6012/4 "2019-03-05T03:20:28Z")

</div>

> [@lassoan](#):
>
> Could you please review/update the [Slicer build instructions](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions) accordingly?

Sounds good.

The plan initial was to update the instructions by the end of the week after removing the Qt4/VTK7 support.

Tomorrow, I will talk with @phcerdan so that we archive the current instruction (useful for Slicer 4.10) and start update them.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 5, 2019, 4:14am UTC](https://discourse.slicer.org/t/updating-minimum-required-version-of-cmake-to-3-13/6012/5 "2019-03-05T04:14:17Z")

</div>

If it’s a major rewrite then it might make sense to move it to ReadTheDocs.

---

<div class="post-metadata">

**Author:** ![adamrankin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/adamrankin/32/155_2.png) [@adamrankin](https://discourse.slicer.org/u/adamrankin)\
**Post date:** [April 9, 2019, 2:35pm UTC](https://discourse.slicer.org/t/updating-minimum-required-version-of-cmake-to-3-13/6012/6 "2019-04-09T14:35:25Z")

</div>

Sorry to resurrect a thread, but just wondering what is missing from 3.10.2? 18.04LTS is still a _very_ common OS.

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [April 9, 2019, 2:59pm UTC](https://discourse.slicer.org/t/updating-minimum-required-version-of-cmake-to-3-13/6012/7 "2019-04-09T14:59:02Z")

</div>

CMake is now official distributed on Ubuntu, you should be able to install CMake 3.14.1 very easily. See [https://blog.kitware.com/ubuntu-cmake-repository-now-available/](https://blog.kitware.com/ubuntu-cmake-repository-now-available/)

> just wondering what is missing from 3.10.2?

Looking at the change log should help answer the question. But support for recent Visual Studio is one thing.
