X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fgdcmjpegls%2FDecoder%2FCMakeLists.txt;h=c00765bbc84b1042910efc2b9f9a254129dba445;hb=5d282cee6495c7114b44780805028c19ee5ba2bf;hp=641f75ddc2dcae4e842abdc8a08c626643fc64ee;hpb=47d5f7773f491efc3f8d687bd0c8f128cb811eb3;p=gdcm.git 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})