From 79d935920df14b7ac7237b7eec9d587ead1c731d Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 21 Aug 2020 16:32:53 +0100 Subject: [PATCH] Support for ecbuild v3.4. Including ecbuild --- CMakeLists.txt | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5180c9802..7bde9ba77 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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