build(cmake): use min CMake version prior to project call

The [CMake documentation](https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html)
mandates that `cmake_minimum_required` should be called early
in the `CMakeLists.txt` prior to any `project()` command.
This commit is contained in:
Gregor Jasny 2023-06-05 08:01:43 +02:00 committed by Ben Clayton
parent 03cc18678e
commit 252b56807b

View File

@ -12,11 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
cmake_policy(SET CMP0048 NEW)
project(cppdap VERSION 1.59.0 LANGUAGES CXX C)
cmake_minimum_required(VERSION 3.13)
project(cppdap VERSION 1.59.0 LANGUAGES CXX C)
set (CMAKE_CXX_STANDARD 11)
include(GNUInstallDirs)