]> Creatis software - gdcm.git/commitdiff
COMP: Fix compilation on macosx and global symbol
authormalaterre <malaterre>
Mon, 13 Jun 2005 15:02:59 +0000 (15:02 +0000)
committermalaterre <malaterre>
Mon, 13 Jun 2005 15:02:59 +0000 (15:02 +0000)
src/gdcmjpegls/Decoder/CMakeLists.txt

index 641f75ddc2dcae4e842abdc8a08c626643fc64ee..c00765bbc84b1042910efc2b9f9a254129dba445 100644 (file)
@@ -12,6 +12,16 @@ SET(GDCMJPEGLS_SRCS
   bitio.c 
   melcode.c)
 
+# Do the -fno-common magic
+IF(APPLE)
+  FOREACH(f ${GDCMJPEGLS_SRCS})
+    SET_SOURCE_FILES_PROPERTIES(
+      "${GDCMJPEGLS_SOURCE_DIR}/Decoder/${f}"
+      PROPERTIES COMPILE_FLAGS -fno-common)
+  ENDFOREACH(f)
+ENDIF(APPLE)
+
+
 ADD_LIBRARY(gdcmjpegls ${GDCMJPEGLS_SRCS})
 #ADD_EXECUTABLE(locod ${GDCMJPEGLS_SRCS})