From c22a4ff980ed8cef48e572e930f472a1132f1b59 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Tue, 21 Apr 2020 09:00:07 +0200 Subject: [PATCH] changed: mark pybind11 headers as system headers to quell some (shadowing) warnings --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bc8e56d66..fefdc09e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -356,7 +356,7 @@ if (OPM_ENABLE_PYTHON) # 2: Embed the Python interpreter for keywords like PYACTION and PYINPUT if (OPM_ENABLE_EMBEDDED_PYTHON) add_subdirectory(python/pybind11) - target_include_directories(opmcommon PRIVATE "python/pybind11/include;${PYTHON_INCLUDE_DIRS}") + target_include_directories(opmcommon SYSTEM PRIVATE "python/pybind11/include;${PYTHON_INCLUDE_DIRS}") target_link_libraries(opmcommon PUBLIC ${PYTHON_LIBRARY}) add_definitions(-DEMBEDDED_PYTHON)