clang/gcc/cmake: [skip ci] suppress deprecated-copy warnings for OpenInventor class SbMatrix

This commit is contained in:
wmayer
2020-06-10 12:49:45 +02:00
parent 5ffb62d8c5
commit 2b1e6ce49a
2 changed files with 19 additions and 2 deletions

View File

@@ -1345,9 +1345,19 @@ if (FREECAD_USE_QT_FILEDIALOG)
set_source_files_properties(FileDialog.cpp PROPERTIES COMPILE_FLAGS -DUSE_QT_FILEDIALOG)
endif()
# Suppress some very long Eigen3 warnings of older versions
# Suppress some very long Eigen3 warnings of older versions and
# suppress this warning for the SbMatrix class
if (EIGEN3_NO_DEPRECATED_COPY)
set_source_files_properties(NaviCube.cpp PROPERTIES COMPILE_FLAGS ${EIGEN3_NO_DEPRECATED_COPY})
set_source_files_properties(
NaviCube.cpp
Inventor/SoAutoZoomTranslation.cpp
SoFCOffscreenRenderer.cpp
SoFCSelectionAction.cpp
SoNavigationDragger.cpp
SoFCCSysDragger.cpp
Quarter/QuarterWidget.cpp
View3DInventorViewer.cpp
PROPERTIES COMPILE_FLAGS ${EIGEN3_NO_DEPRECATED_COPY})
endif ()
add_library(FreeCADGui SHARED ${FreeCADGui_SRCS})

View File

@@ -170,6 +170,13 @@ SET(MeshGuiIcon_SVG
Resources/icons/MeshWorkbench.svg
)
# Suppress this warning for the SbMatrix class
if (EIGEN3_NO_DEPRECATED_COPY)
set_source_files_properties(
SoFCIndexedFaceSet.cpp
PROPERTIES COMPILE_FLAGS ${EIGEN3_NO_DEPRECATED_COPY})
endif ()
add_library(MeshGui SHARED ${MeshGui_SRCS} ${MeshGuiIcon_SVG})
target_link_libraries(MeshGui ${MeshGui_LIBS})