Parcourir la source

Merge branch '382-fix-find-dcmtk-issue'

* 382-fix-find-dcmtk-issue:
  COMP: FindDCMTK - Exclude -D from DCMTK_DEFINITIONS for easier re-use
Jean-Christophe Fillion-Robin il y a 11 ans
Parent
commit
83068561e0
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      Utilities/CMake/FindDCMTK.cmake

+ 2 - 2
Utilities/CMake/FindDCMTK.cmake

@@ -343,10 +343,10 @@ if(DCMTK_FOUND AND UNIX AND NOT APPLE)
     DCMTK_HAVE_CONFIG_H_OPTIONAL
     )
   if(NOT DCMTK_HAVE_CONFIG_H_OPTIONAL)
-    set(DCMTK_DEFINITIONS "-DHAVE_CONFIG_H")
+    set(DCMTK_DEFINITIONS "HAVE_CONFIG_H")
   endif()
   if(NOT DCMTK_HAVE_CONFIG_H_OPTIONAL AND NOT DCMTK_FIND_PACKAGE_SKIP_ADD_DEFINITIONS)
-    add_definitions(${DCMTK_DEFINITIONS})
+    add_definitions(-D${DCMTK_DEFINITIONS})
   endif()
 endif()