I just had a similar problem
Your c++ compiler needs to support c++14, so if you have a version that does not support c++14 then you will have to upgrade to one that does.
To check compiler version
in a terminal type     gcc --version
Looking at this page https://gcc.gnu.org/projects/cxx-status.html 201 I am guessing if you compiler is not >= version 4.9 then you will need to upgrade it
If your compiler does support c++14 then you need to set a flag to -std=c++14 to tell the compiler to use c++14
if building from source I think you would do the following
in CMakeCache.txt file find CMAKE_CXX_FLAGS:STRING= and set it to CMAKE_CXX_FLAGS:STRING=-std=c++14
or CMAKE_CXX_FLAGS:STRING=-std=c++1y
or take a look at this

  
      stackoverflow.com
  
  
      
    
  

  Passing compiler options cmake 141



  cmake



  asked by
  
  
    infoclogged
  
  on 12:02PM - 31 May 17 UTC