From 4dc61b68f5858c5de2d82c0280ba72987aff8dfe Mon Sep 17 00:00:00 2001 From: Jorn Bruggeman Date: Thu, 2 May 2024 14:58:03 +0100 Subject: [PATCH] replace add_dependencies with target_link_libraries to support parallel ninja builds --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index baaeb7a..56e2c14 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -38,7 +38,7 @@ add_library(fabm_models_ersem OBJECT zenith_angle.F90 ) -add_dependencies(fabm_models_ersem fabm_base) +target_link_libraries(fabm_models_ersem PRIVATE fabm_base) if(FABM_EMBED_VERSION) # Dynamically generate "ersem_version" module with git commit/branch information at every build.