From 85a488acac0a7f463a63b42dc30c229b5fd12fff Mon Sep 17 00:00:00 2001 From: malaterre Date: Mon, 13 Jun 2005 15:02:59 +0000 Subject: [PATCH] COMP: Fix compilation on macosx and global symbol --- src/gdcmjpegls/Decoder/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) 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}) -- 2.48.1