supertuxkart / stk-code

The code base of supertuxkart
Other
4.5k stars 1.06k forks source link

CMake warning about policy error CMP0048 #3701

Closed jpenguin closed 3 years ago

jpenguin commented 5 years ago
-- Found Bluez: /usr/lib64/libbluetooth.so  
CMake Deprecation Warning at lib/angelscript/projects/cmake/CMakeLists.txt:6 (cmake_policy):
  The OLD behavior for policy CMP0048 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.

Steps to reproduce

cmake .. -DOpenGL_GL_PREFERENCE=GLVND

deveee commented 5 years ago

This policy is here because of project(angelscript) which causes harmless warning. Maybe in future version it won't be needed or probably we can just remove the project() line.