diff --git a/Framework/API/CMakeLists.txt b/Framework/API/CMakeLists.txt index 49cd50fbacfa14fc9e87c2fce926622647fee78a..42c5823b77a2883b9148559ec1b16dca188b8cd0 100644 --- a/Framework/API/CMakeLists.txt +++ b/Framework/API/CMakeLists.txt @@ -465,7 +465,7 @@ set_property ( TARGET API PROPERTY FOLDER "MantidFramework" ) target_link_libraries ( API LINK_PRIVATE ${TCMALLOC_LIBRARIES_LINKTIME} ${JSONCPP_LIBRARIES} ${MANTIDLIBS} ${GSL_LIBRARIES} ${NEXUS_LIBRARIES} ${WINSOCK} ) if(MAKE_VATES) - target_include_directories( API PRIVATE ${PARAVIEW_INCLUDE_DIRS} ) + target_include_directories( API SYSTEM PRIVATE ${PARAVIEW_INCLUDE_DIRS} ) target_link_libraries ( API LINK_PRIVATE vtkPVClientServerCoreRendering ) endif() diff --git a/MantidPlot/CMakeLists.txt b/MantidPlot/CMakeLists.txt index 6e2b3ebcc0f75fafb0b40da6d31615f04e733789..acd3dde5f9f1924d0f5a97449c3a09e6fffc3d08 100644 --- a/MantidPlot/CMakeLists.txt +++ b/MantidPlot/CMakeLists.txt @@ -799,7 +799,7 @@ target_link_libraries ( MantidPlot LINK_PRIVATE ${TCMALLOC_LIBRARIES_LINKTIME} ) if(MAKE_VATES) - target_include_directories( MantidPlot PRIVATE ${PARAVIEW_INCLUDE_DIRS} ) + target_include_directories( MantidPlot SYSTEM PRIVATE ${PARAVIEW_INCLUDE_DIRS} ) target_link_libraries ( MantidPlot LINK_PRIVATE vtkPVClientServerCoreRendering ) endif()