From 6bbc8b0a91baff6052d751485d9ece0035ae14e0 Mon Sep 17 00:00:00 2001 From: DJDavies2 Date: Wed, 3 May 2023 15:25:18 +0100 Subject: [PATCH] Fix standalone runs. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4d732500..63708829 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,7 @@ set( ECBUILD_DEFAULT_BUILD_TYPE Release ) set( ENABLE_OS_TESTS OFF CACHE BOOL "Disable OS tests" FORCE ) set( ENABLE_LARGE_FILE_SUPPORT OFF CACHE BOOL "Disable testing of large file support" FORCE ) +find_package( ecbuild 3.3.2 REQUIRED ) include( ecbuild_system NO_POLICY_SCOPE ) ecbuild_requires_macro_version( 2.7 ) @@ -40,6 +41,7 @@ set( OPSINPUTS_LINKER_LANGUAGE CXX ) ## Dependencies find_package( jedicmake QUIET ) # Prefer find modules from jedi-cmake +find_package( MPI REQUIRED COMPONENTS C CXX Fortran ) # Boost include_directories( ${Boost_INCLUDE_DIR} )