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.
This commit is contained in:
Dominik Charousset 2019-10-28 13:31:46 +01:00
parent 505ed8f32f
commit 24d5ffa7a1

View file

@ -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