Fixed Clang warnings related to external dependencies

This commit is contained in:
Robert Osfield 2016-06-03 10:18:41 +01:00
parent 41ce857c93
commit 728c439e35

View File

@ -4,7 +4,7 @@ LINK_LIBRARIES(${RSVG_LIBRARIES} ${CAIRO_LIBRARIES})
SET(TARGET_SRC ReaderWriterSVG.cpp ) SET(TARGET_SRC ReaderWriterSVG.cpp )
IF(CMAKE_COMPILER_IS_GNUCXX) IF(CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
# Remove -pedantic flag as it barfs on ffmoeg headers # Remove -pedantic flag as it barfs on ffmoeg headers
STRING(REGEX REPLACE "-pedantic" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") STRING(REGEX REPLACE "-pedantic" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
ENDIF() ENDIF()