Support for ecbuild v3.4. Including ecbuild

This commit is contained in:
Shahram Najm 2020-08-21 16:32:53 +01:00
parent a85d4de9ea
commit 79d935920d
1 changed files with 3 additions and 10 deletions

View File

@ -16,21 +16,14 @@
#
# -DCMAKE_MODULE_PATH=/path/to/ecbuild/cmake
cmake_minimum_required( VERSION 3.11 FATAL_ERROR )
cmake_minimum_required( VERSION 3.12 FATAL_ERROR )
find_package( ecbuild 3.4 REQUIRED )
# Initialise project
project( eccodes VERSION 2.19.0 LANGUAGES C )
set( CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../ecbuild/cmake" )
include( ecbuild_system NO_POLICY_SCOPE )
ecbuild_requires_macro_version( 3.4 )
###############################################################################
# local project
ecbuild_declare_project()
###############################################################################
# system checks needed for eccodes_config.h and some options like MEMFS