From 1ecc4f60d99702662e7a2f99a9bfca59ee935579 Mon Sep 17 00:00:00 2001 From: Christopher Albert Date: Thu, 16 Jul 2026 18:26:23 +0200 Subject: [PATCH] Order pyplot module before SIMPLE compilation --- src/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 56c09524..dd717fbf 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -103,6 +103,11 @@ list(APPEND SOURCES # Link pyplot library to SIMPLE target_link_libraries(simple PUBLIC pyplot) +# `diag_albert.f90` consumes pyplot_module.mod while `pyplot` is a separate +# target. A link edge alone does not order compilation of the dependent target +# under Ninja, so a clean parallel build can compile diag_albert before the +# module file exists. +add_dependencies(simple pyplot) # Apply SIMPLE-specific compile options target_compile_options(simple PRIVATE ${SIMPLE_COMPILE_OPTIONS})