diff --git a/Code/Mantid/Vates/VatesSimpleGui/StandAloneExec/CMakeLists.txt b/Code/Mantid/Vates/VatesSimpleGui/StandAloneExec/CMakeLists.txt
index 0ccd2ead71b5a5445fd65dce9fe71a743b84a121..bcb80bf44f188c723e56314f298d862aaa9a404f 100644
--- a/Code/Mantid/Vates/VatesSimpleGui/StandAloneExec/CMakeLists.txt
+++ b/Code/Mantid/Vates/VatesSimpleGui/StandAloneExec/CMakeLists.txt
@@ -38,13 +38,14 @@ set( TEST_SUITES
 
 add_executable( ${PROJECT_NAME} ${INCLUDE_FILES} ${SOURCE_FILES} ${MOC_SRCS} )
 
+include_directories( SYSTEM ${PARAVIEW_INCLUDE_DIRS} )
+
 target_link_libraries( ${PROJECT_NAME}
-VatesSimpleGuiQtWidgets
-VatesSimpleGuiViewWidgets
-SYSTEM
 pqCore pqComponents pqApplicationComponents
 ${QT_LIBRARIES}
 ${MANTID_SUBPROJECT_LIBS}
+VatesSimpleGuiQtWidgets
+VatesSimpleGuiViewWidgets
 )
 
 if( SQUISH_FOUND )
diff --git a/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/CMakeLists.txt b/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/CMakeLists.txt
index 6d64ce35f82cd51c06ce475048c7453d6d5bba71..98fb3b2fe5843f2f5051296c6f2b5bd42cb2cf2e 100644
--- a/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/CMakeLists.txt
+++ b/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/CMakeLists.txt
@@ -122,7 +122,13 @@ set_target_properties( VatesSimpleGuiViewWidgets PROPERTIES OUTPUT_NAME MantidVa
 # Add to the 'VatesSimpleGui' group in VS
 set_property( TARGET VatesSimpleGuiViewWidgets PROPERTY FOLDER MantidVatesSimpleGui )
 
+
+include_directories( SYSTEM ${PARAVIEW_INCLUDE_DIRS} )
+
 target_link_libraries( VatesSimpleGuiViewWidgets
+pqApplicationComponents
+pqComponents
+${QT_LIBRARIES}
 VatesSimpleGuiQtWidgets
 MantidQtAPI
 VatesAPI
@@ -130,10 +136,6 @@ ${MANTID_SUBPROJECT_LIBS}
 MantidQtSliceViewer
 MantidQtFactory
 MantidWidgets
-SYSTEM
-pqApplicationComponents
-pqComponents
-${QT_LIBRARIES}
 )
 
 # Create test file projects