From 8f11894f93d977fba3428ea264cfce32e74fed77 Mon Sep 17 00:00:00 2001 From: Stephane Del Pino <stephane.delpino44@gmail.com> Date: Tue, 22 Oct 2024 23:22:16 +0200 Subject: [PATCH] Fix configuration if slurm is not detected --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index cca562a86..804752039 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -253,6 +253,8 @@ set(PUGS_HAS_SLURM ${SLURM_FOUND}) if (${SLURM_FOUND}) include_directories(SYSTEM "${SLURM_INCLUDE_DIR}") +else() + set(SLURM_LIBRARY "") endif() #------------------------------------------------------ -- GitLab