openhantek icon indicating copy to clipboard operation
openhantek copied to clipboard

Failed to build with cmake < 3.11

Open eagafonov opened this issue 6 years ago • 1 comments

$ cmake --version
cmake version 3.7.2
 
 
$ cmake ..
CMake Error at CMakeLists.txt:4 (cmake_policy):
  Policy "CMP0072" is not known to this version of CMake.

Commit https://github.com/OpenHantek/openhantek/commit/9d0ebc7701d9a66934bb95ac01db6c71df87dabb forces CMake Policy 0072 which is available since CMake 3.11 so the build fails with any earlier versions.

The possible fix is to replace faulty line with equivalent version

set(OpenGL_GL_PREFERENCE GLVND)

eagafonov avatar Sep 28 '18 15:09 eagafonov

Correct. If you open a pull request, I would happily accept it.

davidgraeff avatar Sep 29 '18 16:09 davidgraeff