Skip to content
Snippets Groups Projects
Commit 6c7b81cb authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

BugID: 947

Added checks for HAVE_BOOST in several files, so that the Boost package can be
optinal again.
parent 2e2c2682
No related merge requests found
......@@ -53,7 +53,7 @@ dnl
lofar_GENERAL
lofar_MPI
lofar_INTERNAL(LCS/Tools,Tools,,,,"")
lofar_EXTERNAL(boost,1,boost/preprocessor/repetition.hpp,"")
lofar_EXTERNAL(boost,0,boost/preprocessor/repetition.hpp,"")
dnl
dnl Output Makefiles
dnl
......
......@@ -53,6 +53,9 @@
# ifndef LOFAR_COMMON_OBJECT_FACTORY_H
# define LOFAR_COMMON_OBJECT_FACTORY_H
# ifndef HAVE_BOOST
# error The Boost.Preprocessor metaprogramming tools are required
# endif
# include <Common/lofar_map.h>
# include <Common/lofar_vector.h>
......
......@@ -34,7 +34,7 @@ namespace LOFAR
// @{
// Singleton implements the so-called Meyers singleton (see Item 26 in
// <em>More Effective C++<em>, by Scott Meyers).
// <em>More Effective C++</em>, by Scott Meyers).
//
// \attention The Meyers singleton is \e not thread-safe. So, you can only
// safely use this Singleton class <em>as long as</em> there is only one
......
......@@ -24,6 +24,9 @@
//# Always #include <lofar_config.h> first!
#include <lofar_config.h>
//# This code can only be compiled if Boost is available.
#ifdef HAVE_BOOST
//# Includes
#include "Coordinates.h"
#include <Common/lofar_iostream.h>
......@@ -69,3 +72,4 @@ namespace LOFAR
}
#endif
......@@ -23,6 +23,9 @@
//# Always #include <lofar_config.h> first!
#include <lofar_config.h>
//# This code can only be compiled if Boost is available.
#ifdef HAVE_BOOST
//# Includes
#include "Shapes.h"
#include <Common/lofar_iostream.h>
......@@ -71,3 +74,4 @@ namespace LOFAR
}
#endif
......@@ -23,6 +23,9 @@
//# Always #include <lofar_config.h> first!
#include <lofar_config.h>
//# This program can only be compiled if Boost is available.
#ifdef HAVE_BOOST
//# Includes
#include "Shapes.h"
#include "Coordinates.h"
......@@ -86,3 +89,13 @@ int main()
cout << endl;
return 0;
}
#else
int main()
{
// Test skipped.
return 3;
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment