From 3b051d670b93d3319d74834be188645f248a03ec Mon Sep 17 00:00:00 2001 From: sdcm Date: Mon, 20 Nov 2023 15:46:56 +0100 Subject: [PATCH] [alien] Handle Alien default build choice. Build ArcaneInterface only if Arcane is built. --- _common/build_all/CMakeLists.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/_common/build_all/CMakeLists.txt b/_common/build_all/CMakeLists.txt index 45f31e5582..066631ae6c 100644 --- a/_common/build_all/CMakeLists.txt +++ b/_common/build_all/CMakeLists.txt @@ -63,9 +63,14 @@ enable_testing() # ---------------------------------------------------------------------------- if (NOT ALIEN_BUILD_COMPONENT) - # Deux valeurs possibles: 'alien_standalone' ou 'all' - set(ALIEN_BUILD_COMPONENT alien_standalone) # alien/ArcaneInterface (=Alien_legacy_plugins) temporarily deactivated. To remove. -endif() + if (Arcane IN_LIST ARCANEFRAMEWORK_BUILD_COMPONENTS) + # if Arcane is specified in command line build all Alien components + set (ALIEN_BUILD_COMPONENT all) + else () + # else build only alien_standalone (does not depend on Arcane) + set(ALIEN_BUILD_COMPONENT alien_standalone) # alien/ArcaneInterface (=Alien_legacy_plugins) temporarily deactivated. To remove. + endif() +endif () # ----------------------------------------------------------------------------