From 06236e5cc6ca03648fd43383a8c679802cbfa9ef Mon Sep 17 00:00:00 2001 From: Sylvain Pion Date: Thu, 7 Oct 1999 16:12:29 +0000 Subject: [PATCH] - Don't fail when CGAL_USE_CLN is not defined. --- Old_Packages/CLN/test/CLN/test_io.C | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Old_Packages/CLN/test/CLN/test_io.C b/Old_Packages/CLN/test/CLN/test_io.C index f4fc9098616..1354a7e4b06 100644 --- a/Old_Packages/CLN/test/CLN/test_io.C +++ b/Old_Packages/CLN/test/CLN/test_io.C @@ -1,7 +1,3 @@ -#ifndef CGAL_USE_CLN -# error "You need to have CLN installed in order to run this example" -#endif - // This program tests some basic IO functions for some CLN types. #include @@ -9,6 +5,14 @@ #include #include +#ifndef CGAL_USE_CLN +int main() +{ + std::cout << "CGAL has not been installed with CLN." << std::endl; + return 0; +} +#else // CGAL_USE_CLN + #include #include #include @@ -54,3 +58,4 @@ main () return (ok) ? 0 : -1; } +#endif // CGAL_USE_CLN