From: malaterre Date: Mon, 13 Jun 2005 15:02:59 +0000 (+0000) Subject: COMP: Fix compilation on macosx and global symbol X-Git-Tag: Version1.2.bp~517 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=85a488acac0a7f463a63b42dc30c229b5fd12fff;p=gdcm.git COMP: Fix compilation on macosx and global symbol --- diff --git a/src/gdcmjpegls/Decoder/CMakeLists.txt b/src/gdcmjpegls/Decoder/CMakeLists.txt index 641f75dd..c00765bb 100644 --- a/src/gdcmjpegls/Decoder/CMakeLists.txt +++ b/src/gdcmjpegls/Decoder/CMakeLists.txt @@ -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})