changeset 26:52e83e94eb37

fix test about presence of DefineSourceBasenameForTarget
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 13 Dec 2023 08:59:33 +0100
parents 06da140e11b8
children bf4e5434567c
files CMakeLists.txt
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Fri Nov 24 14:25:01 2023 +0100
+++ b/CMakeLists.txt	Wed Dec 13 08:59:33 2023 +0100
@@ -196,7 +196,7 @@
   VERSION ${ORTHANC_OHIF_VERSION} 
   SOVERSION ${ORTHANC_OHIF_VERSION})
 
-if (DEFINED DefineSourceBasenameForTarget)
+if (COMMAND DefineSourceBasenameForTarget)
   DefineSourceBasenameForTarget(OrthancOHIF)
 endif()