Replace #ifdef CGAL_USE_BOOST_PROGRAM_OPTIONS with #ifndef DONT_USE_BOOST_PROGRAM_OPTIONS

This commit is contained in:
Andreas Fabri 2016-01-26 17:16:02 +01:00
parent 3a92fd3f96
commit 4b8944e5b2
4 changed files with 12 additions and 12 deletions

View File

@ -6,7 +6,7 @@
#include <CGAL/property_map.h>
#ifdef CGAL_USE_BOOST_PROGRAM_OPTIONS
#ifndef DONT_USE_BOOST_PROGRAM_OPTIONS
#include <boost/program_options.hpp>
namespace po = boost::program_options;
#endif
@ -117,7 +117,7 @@ void gather_fitting_points(Vertex* v,
}
///////////////MAIN///////////////////////////////////////////////////////
#ifdef CGAL_USE_BOOST_PROGRAM_OPTIONS
#ifndef DONT_USE_BOOST_PROGRAM_OPTIONS
int main(int argc, char *argv[])
#else
int main()
@ -131,7 +131,7 @@ int main()
std::ofstream out_4ogl, out_verbose;
try {
#ifdef CGAL_USE_BOOST_PROGRAM_OPTIONS
#ifndef DONT_USE_BOOST_PROGRAM_OPTIONS
po::options_description desc("Allowed options");
desc.add_options()
("help,h", "produce help message.")

View File

@ -12,7 +12,7 @@
#ifdef CGAL_USE_BOOST_PROGRAM_OPTIONS
#ifndef DONT_USE_BOOST_PROGRAM_OPTIONS
#include <boost/program_options.hpp>
namespace po = boost::program_options;
#endif
@ -179,7 +179,7 @@ void compute_differential_quantities(PolyhedralSurf& P, Poly_rings& poly_rings)
///////////////MAIN///////////////////////////////////////////////////////
#ifdef CGAL_USE_BOOST_PROGRAM_OPTIONS
#ifndef DONT_USE_BOOST_PROGRAM_OPTIONS
int main(int argc, char *argv[])
#else
int main()
@ -188,7 +188,7 @@ int main()
std::string if_name, of_name;// of_name same as if_name with '/' -> '_'
try {
#ifdef CGAL_USE_BOOST_PROGRAM_OPTIONS
#ifndef DONT_USE_BOOST_PROGRAM_OPTIONS
unsigned int int_tag;
po::options_description desc("Allowed options");
desc.add_options()

View File

@ -9,7 +9,7 @@
#include <fstream>
#include <cassert>
#ifdef CGAL_USE_BOOST_PROGRAM_OPTIONS
#ifndef DONT_USE_BOOST_PROGRAM_OPTIONS
#include <boost/program_options.hpp>
namespace po = boost::program_options;
#endif
@ -168,7 +168,7 @@ void compute_differential_quantities(PolyhedralSurf& P, Poly_rings& poly_rings)
///////////////MAIN///////////////////////////////////////////////////////
#ifdef CGAL_USE_BOOST_PROGRAM_OPTIONS
#ifndef DONT_USE_BOOST_PROGRAM_OPTIONS
int main(int argc, char *argv[])
#else
int main()
@ -177,7 +177,7 @@ int main()
std::string if_name, of_name;// of_name same as if_name with '/' -> '_'
try {
#ifdef CGAL_USE_BOOST_PROGRAM_OPTIONS
#ifndef DONT_USE_BOOST_PROGRAM_OPTIONS
unsigned int int_tag;
po::options_description desc("Allowed options");
desc.add_options()

View File

@ -46,7 +46,7 @@
#include <fstream>
#include <cassert>
#ifdef CGAL_USE_BOOST_PROGRAM_OPTIONS
#ifndef DONT_USE_BOOST_PROGRAM_OPTIONS
#include <boost/program_options.hpp>
namespace po = boost::program_options;
#endif
@ -283,7 +283,7 @@ parameterize(ParameterizationMesh_3& mesh, // Mesh parameterization adaptor
// main()
// ----------------------------------------------------------------------------
#ifdef CGAL_USE_BOOST_PROGRAM_OPTIONS
#ifndef DONT_USE_BOOST_PROGRAM_OPTIONS
int main(int argc, char * argv[])
#else
int main()
@ -305,7 +305,7 @@ int main()
std::string output; // default: out.eps
try
{
#ifdef CGAL_USE_BOOST_PROGRAM_OPTIONS
#ifndef DONT_USE_BOOST_PROGRAM_OPTIONS
po::options_description desc("Allowed options");
desc.add_options()
("help,h", "prints this help message")