From 24d5ffa7a1dd52fc02d44c14c09738e712ce40e7 Mon Sep 17 00:00:00 2001 From: Dominik Charousset Date: Mon, 28 Oct 2019 13:31:46 +0100 Subject: [PATCH] Fix position of project(), require CMake 3 The call to `project` must come after `cmake_minimum_required` in CMake in order to get the correct policy settings. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e3f5b4361..c786f5ee59 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,8 @@ -project(Zeek C CXX) - # When changing the minimum version here, also adapt # aux/zeek-aux/plugin-support/skeleton/CMakeLists.txt -cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR) +cmake_minimum_required(VERSION 3.0 FATAL_ERROR) + +project(Zeek C CXX) if ( NOT CMAKE_INSTALL_LIBDIR ) # Currently, some sub-projects may use GNUInstallDirs.cmake to choose the