From 8cb6b8cb362366909281fa7541ab3279dfe941ad Mon Sep 17 00:00:00 2001 From: Tom Clune Date: Wed, 3 Jun 2020 15:25:33 -0400 Subject: [PATCH] Fixes #100 - migration of macro to create stub components. --- CHANGELOG.md | 2 ++ esma_add_library.cmake | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d610a27..e93ab02f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed ### Removed ### Added +- Option to use cmake macro defined in MAPL for creating stubs. + Option should be removed once MAPL changes are accepted. ## [3.0.2] - 2020-05-04 diff --git a/esma_add_library.cmake b/esma_add_library.cmake index ce272aa5..c8df6825 100644 --- a/esma_add_library.cmake +++ b/esma_add_library.cmake @@ -77,7 +77,11 @@ macro (esma_add_library this) list (APPEND non_stubbed ${mod_name}) else () ecbuild_debug(" ... Creating stub component ${module_name}") - esma_create_stub_component (ARGS_SOURCES ${module_name}) + if (COMMAND mapl_create_stub_component) + mapl_create_stub_component (ARGS_SOURCES ${module_name}) + else () + esma_create_stub_component (ARGS_SOURCES ${module_name}) + endif () endif () endforeach ()