digital-sound-antiques / emu2413

A YM2413 emulator written in C.
MIT License
74 stars 18 forks source link

Fix cmake warnings #10

Closed orbea closed 2 years ago

orbea commented 2 years ago

Fixes some trivial warnings with cmake 3.24.1.

CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.
CMake Deprecation Warning at CMakeLists.txt:2 (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.
okaxaki commented 2 years ago

Thank you. This project has been supporting cmake 2.8 for compatibility, but it is certainly time to move to 3.0. I also plan to modify other emu- projects.