diff --git a/CGALimageIO/demo/CGALimageIO/image_to_vtk_viewer.cpp b/CGALimageIO/demo/CGALimageIO/image_to_vtk_viewer.cpp index 4e6ecdfa222..707fbd5ad06 100644 --- a/CGALimageIO/demo/CGALimageIO/image_to_vtk_viewer.cpp +++ b/CGALimageIO/demo/CGALimageIO/image_to_vtk_viewer.cpp @@ -13,6 +13,8 @@ PURPOSE. See the above copyright notice for more information. */ +#ifdef CGAL_USE_VTK + #include #include #include @@ -161,4 +163,14 @@ int main(int argc, char** argv) return 0; } +#else // #ifdef CGAL_USE_VTK +#include + +int main() +{ + std::cerr << "That demo needs VTK support.\n"; + return 0; +} + +#endif // CGAL_USE_VTK