Merge pull request #6599 from lioncash/cmake-option CMakeLists: Move build options to the top of the file