- Don't fail when CGAL_USE_CLN is not defined.

This commit is contained in:
Sylvain Pion 1999-10-07 16:12:29 +00:00
parent 93d1f56927
commit 06236e5cc6
1 changed files with 9 additions and 4 deletions

View File

@ -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 <CGAL/basic.h>
@ -9,6 +5,14 @@
#include <fstream.h>
#include <cassert>
#ifndef CGAL_USE_CLN
int main()
{
std::cout << "CGAL has not been installed with CLN." << std::endl;
return 0;
}
#else // CGAL_USE_CLN
#include <CGAL/CLN/cl_integer.h>
#include <CGAL/CLN/cl_rational.h>
#include <CGAL/Quotient.h>
@ -54,3 +58,4 @@ main ()
return (ok) ? 0 : -1;
}
#endif // CGAL_USE_CLN