Build: suppress warnings from 3rd party libraries

Warnings from 3rd parties are not relevant and are only polluting the warning output. Marking these libraries as SYSTEM suppresses warning.

https://gcc.gnu.org/onlinedocs/cpp/Invocation.html#index-I
https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html
This commit is contained in:
Benjamin Bræstrup Sayoc
2025-02-24 14:18:17 +01:00
committed by Chris Hennes
parent 30af56d860
commit ee1c73cd04
72 changed files with 266 additions and 20 deletions

View File

@@ -7,6 +7,10 @@ include_directories(
${CMAKE_SOURCE_DIR}/src
${CMAKE_BINARY_DIR}/src
${CMAKE_CURRENT_BINARY_DIR}
)
include_directories(
SYSTEM
${Boost_INCLUDE_DIRS}
${OCC_INCLUDE_DIR}
${EIGEN3_INCLUDE_DIR}

View File

@@ -2,6 +2,10 @@ include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/src
${CMAKE_CURRENT_BINARY_DIR}
)
include_directories(
SYSTEM
${Boost_INCLUDE_DIRS}
${COIN3D_INCLUDE_DIRS}
${ZLIB_INCLUDE_DIR}

View File

@@ -4,6 +4,10 @@ include_directories(
${CMAKE_SOURCE_DIR}/src
${CMAKE_BINARY_DIR}/src
${CMAKE_CURRENT_BINARY_DIR}
)
include_directories(
SYSTEM
${Boost_INCLUDE_DIRS}
${OCC_INCLUDE_DIR}
${PYCXX_INCLUDE_DIR}

View File

@@ -3,6 +3,10 @@ include_directories(
${CMAKE_SOURCE_DIR}/src
${CMAKE_BINARY_DIR}/src
${CMAKE_CURRENT_BINARY_DIR}
)
include_directories(
SYSTEM
${Boost_INCLUDE_DIRS}
${COIN3D_INCLUDE_DIRS}
${ZLIB_INCLUDE_DIR}

View File

@@ -9,9 +9,13 @@ if(MSVC)
endif(MSVC)
include_directories(
SYSTEM
${PYCXX_INCLUDE_DIR}
${Python3_INCLUDE_DIRS}
${OCC_INCLUDE_DIR}
)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/src/Mod/Import/App/dxf
)
@@ -39,7 +43,7 @@ if(NOT FREECAD_USE_PYBIND11)
endif()
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
MESSAGE(STATUS "found Boost: " ${Boost_LIB_VERSION})
MESSAGE(STATUS "boost-incude dirs are: " ${Boost_INCLUDE_DIRS})
MESSAGE(STATUS "boost-python lib is: " ${Boost_PYTHON_LIBRARY})
@@ -47,10 +51,10 @@ if(NOT FREECAD_USE_PYBIND11)
MESSAGE(STATUS "Boost_LIBRARIES is: " ${Boost_LIBRARIES})
endif()
else()
include_directories(${Boost_INCLUDE_DIRS})
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
endif()
else()
include_directories(${pybind11_INCLUDE_DIR})
include_directories(SYSTEM ${pybind11_INCLUDE_DIR})
endif(NOT FREECAD_USE_PYBIND11)