mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
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:
parent
505ed8f32f
commit
24d5ffa7a1
1 changed files with 3 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
||||||
project(Zeek C CXX)
|
|
||||||
|
|
||||||
# When changing the minimum version here, also adapt
|
# When changing the minimum version here, also adapt
|
||||||
# aux/zeek-aux/plugin-support/skeleton/CMakeLists.txt
|
# 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 )
|
if ( NOT CMAKE_INSTALL_LIBDIR )
|
||||||
# Currently, some sub-projects may use GNUInstallDirs.cmake to choose the
|
# Currently, some sub-projects may use GNUInstallDirs.cmake to choose the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue