clang/gcc/cmake: move handling of suppressed deprecated-copy warnings from source file to CMake file to more easily support gcc 10
This commit is contained in:
@@ -397,6 +397,14 @@ if(FREECAD_USE_PCH)
|
||||
ADD_MSVC_PRECOMPILED_HEADER(Part PreCompiled.h PreCompiled.cpp PCH_SRCS)
|
||||
endif(FREECAD_USE_PCH)
|
||||
|
||||
# Suppress some very long Eigen3 warnings of older versions
|
||||
if (EIGEN3_NO_DEPRECATED_COPY)
|
||||
set_source_files_properties(
|
||||
GeometryCurvePyImp.cpp
|
||||
GeometrySurfacePyImp.cpp
|
||||
PROPERTIES COMPILE_FLAGS ${EIGEN3_NO_DEPRECATED_COPY})
|
||||
endif ()
|
||||
|
||||
add_library(Part SHARED ${Part_SRCS})
|
||||
target_link_libraries(Part ${Part_LIBS})
|
||||
|
||||
|
||||
@@ -23,12 +23,6 @@
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#if defined(__clang__) && defined(__has_warning)
|
||||
#if __has_warning("-Wdeprecated-copy")
|
||||
# pragma clang diagnostic ignored "-Wdeprecated-copy"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef _PreComp_
|
||||
# include <sstream>
|
||||
# include <BRepBuilderAPI_MakeEdge.hxx>
|
||||
|
||||
@@ -23,12 +23,6 @@
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#if defined(__clang__) && defined(__has_warning)
|
||||
#if __has_warning("-Wdeprecated-copy")
|
||||
# pragma clang diagnostic ignored "-Wdeprecated-copy"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef _PreComp_
|
||||
# include <BRepBuilderAPI_MakeFace.hxx>
|
||||
# include <gp_Circ.hxx>
|
||||
|
||||
Reference in New Issue
Block a user