diff Aws/CMakeLists.txt @ 130:17f350ab12ca

conditional usage of DefineSourceBasenameForTarget
author Alain Mazy <am@osimis.io>
date Tue, 28 Nov 2023 14:11:11 +0100
parents fe51b4fb5132
children 9520a6d10992
line wrap: on
line diff
--- a/Aws/CMakeLists.txt	Fri Nov 24 17:16:02 2023 +0100
+++ b/Aws/CMakeLists.txt	Tue Nov 28 14:11:11 2023 +0100
@@ -148,7 +148,9 @@
   ${COMMON_SOURCES}
   )
 
-DefineSourceBasenameForTarget(OrthancAwsS3Storage)
+if (DEFINED DefineSourceBasenameForTarget)
+  DefineSourceBasenameForTarget(OrthancAwsS3Storage)
+endif()
 
 set_target_properties(OrthancAwsS3Storage PROPERTIES
   VERSION ${PLUGIN_VERSION}