diff --git a/wmake/scripts/cmakeFunctions b/wmake/scripts/cmakeFunctions index ca72558c9eca83762a65d8e25906f37808b2f53a..f3fb0abb39672ce9775e2caf46edbe2439fd3d5a 100644 --- a/wmake/scripts/cmakeFunctions +++ b/wmake/scripts/cmakeFunctions @@ -158,6 +158,14 @@ canBuildPlugin() return 1 } + [ -d "$ParaView_INCLUDE_DIR" ] && \ + [ -f "$ParaView_INCLUDE_DIR/pqServerManagerModel.h" ] || { + echo "==> cannot build ParaView plugins without an include directory" + echo " ... or without GUI support" + echo " ParaView_INCLUDE_DIR=$ParaView_INCLUDE_DIR" + return 1 + } + command -v cmake > /dev/null 2>&1 || { echo "==> cannot build ParaView plugins without cmake" return 1