Fix cmake build on macOS by sikmir · Pull Request #2341 · sqlitebrowser/sqlitebrowser

Cmake build fails on macOS with:

...
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
CMake Error in CMakeLists.txt:
  No known features for CXX compiler

  "Clang"

  version 5.0.2.


CMake Generate step failed.  Build files cannot be regenerated correctly.

Root cause is the same as https://trac.macports.org/ticket/57700#comment:6 (TLDR: cmake_minimum_required() should be before project()).