From 3666fb17dab8f935810c5d85acb6705affe5e719 Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Mon, 31 Mar 2025 12:03:47 +0000
Subject: [PATCH] EP: just use variable for if

---
 cmake/modules/ExternalProject.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/modules/ExternalProject.cmake b/cmake/modules/ExternalProject.cmake
index d85ed8483a..8e6ce3276f 100644
--- a/cmake/modules/ExternalProject.cmake
+++ b/cmake/modules/ExternalProject.cmake
@@ -1161,7 +1161,7 @@ function(ExternalProject_Add_Step name step)
   if(command AND log)
     _ep_write_log_script(${name} ${step} command)
   endif()
-if(${work_dir})
+if(work_dir)
   add_custom_command(
     OUTPUT ${stamp_file}
     COMMENT ${comment}
-- 
GitLab