title: Set -Wno-dev in CMakeLists.txt
body: <p>I use the <a href="https://github.com/aminosbh/sdl2-cmake-modules" rel="nofollow noreferrer">SDL2 CMake Modules</a> and include them in my CMakeLists.txt like this</p>
  <pre><code>list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/sdl2)
  find_package(SDL2 REQUIRED)
  find_package(SDL2_gfx REQUIRED)
  </code></pre>
  <p>There, they generate the warning</p>
  <blockquote>
  <p>CMake Warning (dev) at /opt/homebrew/Cellar/cmake/3.21.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message): <br>
  The package name passed to <code>find_package_handle_standard_args</code> (SDL2main) <br>
  does not match the name of the calling package (SDL2).  This can lead to <br>
  problems in calling code that expects <code>find_package</code> result variables <br>
  (e.g., <code>_FOUND</code>) to follow a certain pattern. <br>
  Call Stack (most recent call first): <br>
  cmake/sdl2/FindSDL2.cmake:318 (FIND_PACKAGE_HANDLE_STANDARD_ARGS CMakeLists.txt:13 (find_package) <br>
  This warning is for project developers.  Use -Wno-dev to suppress it.</p>
  </blockquote>
  <p>I don't care about that warning and want to suppress it. <br>
  However, I don't want to pass <code>-Wno-dev</code> to the <code>cmake</code> command itself, I would rather set that flag in the CMakeLists.txt.</p>