From 728c439e353aee45ff163cac177e2108560b7eb5 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 3 Jun 2016 10:18:41 +0100 Subject: [PATCH] Fixed Clang warnings related to external dependencies --- src/osgPlugins/svg/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgPlugins/svg/CMakeLists.txt b/src/osgPlugins/svg/CMakeLists.txt index 97c3812ee..1d7b5265d 100644 --- a/src/osgPlugins/svg/CMakeLists.txt +++ b/src/osgPlugins/svg/CMakeLists.txt @@ -4,7 +4,7 @@ LINK_LIBRARIES(${RSVG_LIBRARIES} ${CAIRO_LIBRARIES}) 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 STRING(REGEX REPLACE "-pedantic" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") ENDIF()