From a165930b48a1675c46b0c5cc1243c33afaa4f1ad Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 26 Nov 2014 16:15:37 +0000 Subject: [PATCH] Fixed warning git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14542 16af8721-9629-0410-8352-f15c8da7e697 --- src/osgPlugins/pdf/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osgPlugins/pdf/CMakeLists.txt b/src/osgPlugins/pdf/CMakeLists.txt index c27dc345e..795750654 100644 --- a/src/osgPlugins/pdf/CMakeLists.txt +++ b/src/osgPlugins/pdf/CMakeLists.txt @@ -1,5 +1,9 @@ SET(TARGET_SRC ReaderWriterPDF.cpp ) +IF(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang") + REMOVE_CXX_FLAG(-pedantic) +ENDIF() + INCLUDE_DIRECTORIES( ${CAIRO_INCLUDE_DIRS} ${POPPLER_INCLUDE_DIRS} ) LINK_DIRECTORIES(${CAIRO_LIBRARY_DIRS} ${POPPLER_LIBRARY_DIRS}) SET(TARGET_EXTERNAL_LIBRARIES ${CAIRO_LIBRARIES} ${POPPLER_LIBRARIES} )