lsalzman / enet

ENet reliable UDP networking library
MIT License
2.77k stars 673 forks source link

Future proof cmake minimum version #187

Closed metaquarx closed 2 years ago

metaquarx commented 2 years ago

This lets cmake know that the project is compatible and has been tested with even higher versions of cmake.

metaquarx commented 2 years ago

This would suppress

CMake Warning (dev) at build/_deps/enet-src/CMakeLists.txt:3 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    PROJECT_VERSION
    PROJECT_VERSION_MAJOR
    PROJECT_VERSION_MINOR
    PROJECT_VERSION_PATCH
This warning is for project developers.  Use -Wno-dev to suppress it.
metaquarx commented 2 years ago

👌