changeset 132:573585bcc9ff

fix test about presence of DefineSourceBasenameForTarget
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 13 Dec 2023 09:09:17 +0100
parents 9520a6d10992
children c5fe4d3cc56f
files Aws/CMakeLists.txt Azure/CMakeLists.txt Google/CMakeLists.txt
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Aws/CMakeLists.txt	Wed Nov 29 09:42:26 2023 +0100
+++ b/Aws/CMakeLists.txt	Wed Dec 13 09:09:17 2023 +0100
@@ -148,7 +148,7 @@
   ${COMMON_SOURCES}
   )
 
-if (DEFINED DefineSourceBasenameForTarget)
+if (COMMAND DefineSourceBasenameForTarget)
   DefineSourceBasenameForTarget(OrthancAwsS3Storage)
 endif()
 
--- a/Azure/CMakeLists.txt	Wed Nov 29 09:42:26 2023 +0100
+++ b/Azure/CMakeLists.txt	Wed Dec 13 09:09:17 2023 +0100
@@ -121,7 +121,7 @@
     ${COMMON_SOURCES}
   )
 
-if (DEFINED DefineSourceBasenameForTarget)
+if (COMMAND DefineSourceBasenameForTarget)
   DefineSourceBasenameForTarget(OrthancAzureBlobStorage)
 endif()
 
--- a/Google/CMakeLists.txt	Wed Nov 29 09:42:26 2023 +0100
+++ b/Google/CMakeLists.txt	Wed Dec 13 09:09:17 2023 +0100
@@ -97,7 +97,7 @@
     ${COMMON_SOURCES}
   )
 
-if (DEFINED DefineSourceBasenameForTarget)
+if (COMMAND DefineSourceBasenameForTarget)
   DefineSourceBasenameForTarget(OrthancGoogleCloudStorage)
 endif()