mirror of https://github.com/CGAL/cgal
- Don't fail when CGAL_USE_CLN is not defined.
This commit is contained in:
parent
93d1f56927
commit
06236e5cc6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue