From 83b87c748ff21278ed8894e7e2ca80a5974dbf81 Mon Sep 17 00:00:00 2001 From: Nils-Arne Dreier <dreier@dkrz.de> Date: Mon, 9 Sep 2024 13:12:20 +0200 Subject: [PATCH] fix(pipelines): set correct build driectory for downloading replay_data --- CMakeLists.txt | 2 +- pipelines/gridwriter/CMakeLists.txt | 2 +- pipelines/live/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 902248c..8bcdb2c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.17) +cmake_minimum_required(VERSION 3.20) project(catalyst_adapter VERSION 0.1.0 LANGUAGES C CXX diff --git a/pipelines/gridwriter/CMakeLists.txt b/pipelines/gridwriter/CMakeLists.txt index 922bacc..238dba2 100644 --- a/pipelines/gridwriter/CMakeLists.txt +++ b/pipelines/gridwriter/CMakeLists.txt @@ -12,7 +12,7 @@ file(GENERATE OUTPUT master.nml ") file(GENERATE OUTPUT run.sh CONTENT "#!/bin/sh -cmake --build . --target \"download_replay_data_${REPLAY_DATA_NAME}\" +cmake --build ${PROJECT_BINARY_DIR} --target \"download_replay_data_${REPLAY_DATA_NAME}\" cd ${CMAKE_CURRENT_BINARY_DIR} set -e ${MPIEXEC_EXECUTABLE} ${MPIEXEC_NUMPROC_FLAG} 3 \"$<TARGET_FILE:ComIn::comin_replay>\" \"${REPLAY_DATA_PATH}/\" diff --git a/pipelines/live/CMakeLists.txt b/pipelines/live/CMakeLists.txt index 1a4c5ee..85416d5 100644 --- a/pipelines/live/CMakeLists.txt +++ b/pipelines/live/CMakeLists.txt @@ -12,7 +12,7 @@ file(GENERATE OUTPUT master.nml ") file(GENERATE OUTPUT run.sh CONTENT "#!/bin/sh -cmake --build . --target \"download_replay_data_${REPLAY_DATA_NAME}\" +cmake --build ${PROJECT_BINARY_DIR} --target \"download_replay_data_${REPLAY_DATA_NAME}\" cd ${CMAKE_CURRENT_BINARY_DIR} set -e ${MPIEXEC_EXECUTABLE} ${MPIEXEC_NUMPROC_FLAG} 3 \"$<TARGET_FILE:ComIn::comin_replay>\" \"${REPLAY_DATA_PATH}/\" -- GitLab