# Cmake 3.19.0 : build fails on Linux

**URL:** https://discourse.slicer.org/t/cmake-3-19-0-build-fails-on-linux/14726
**Category:** Development
**Created:** [November 21, 2020, 8:30pm UTC](https://discourse.slicer.org/t/cmake-3-19-0-build-fails-on-linux/14726 "2020-11-21T20:30:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)
#### Post date: [November 21, 2020, 8:30pm UTC](https://discourse.slicer.org/t/cmake-3-19-0-build-fails-on-linux/14726/1 "2020-11-21T20:30:15Z")

</div>

Build fails on Arch Linux with cmake 3.19.0 with the errors below. Reverting to cmake 3.18.4 fixes the problem.

Not a fundamental issue, FYI.

Regards.

…  
…  
CMake Deprecation Warning at Modules/ThirdParty/GoogleTest/src/itkgoogletest/googletest/CMakeLists.txt:56 (cmake\_minimum\_required):  
Compatibility with CMake \< 2.8.12 will be removed from a future version of  
CMake.

```
  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at Modules/ThirdParty/MINC/src/libminc/CMakeLists.txt:25 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Error: install(EXPORT "ITKTargets" ...) includes target "gdcmjpeg8" more than once in the export set.
CMake Generate step failed. Build files cannot be regenerated correctly.
make[3]: *** [CMakeFiles/ITK.dir/build.make:130: ITK-prefix/src/ITK-stamp/ITK-configure] Error 1
make[2]: *** [CMakeFiles/Makefile2:1423: CMakeFiles/ITK.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:223: CMakeFiles/Slicer.dir/rule] Error 2
make: *** [Makefile:137: Slicer] Error 2
```

---

<div class="post-metadata">

### Author: ![guangxv](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/guangxv/32/9024_2.png) [@guangxv](https://discourse.slicer.org/u/guangxv)
#### Post date: [November 30, 2020, 6:53am UTC](https://discourse.slicer.org/t/cmake-3-19-0-build-fails-on-linux/14726/2 "2020-11-30T06:53:12Z")

</div>

It worked to use CMake-3.18.5 instead.
