From 36315f989167f5f7366a0ebcefea4aa53140e9e4 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Thu, 27 Aug 2020 17:54:29 +0100 Subject: [PATCH] ECC-1143: Put the CMAKE_MODULE_PATH line before find_package(ecbuild) --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cd2e9b54c..c4bf8c5b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,12 +17,13 @@ # -DCMAKE_MODULE_PATH=/path/to/ecbuild/cmake cmake_minimum_required( VERSION 3.12 FATAL_ERROR ) + +set( CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../ecbuild/cmake" ) 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" ) ############################################################################### # system checks needed for eccodes_config.h and some options like MEMFS