Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit a7c9210d authored by snuverink_j's avatar snuverink_j
Browse files

Resolve "cleanup: Boost versions checks"

parent 8c5a9c49
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required (VERSION 3.1) cmake_minimum_required (VERSION 3.1)
project (OPAL VERSION 2.1.0) project (OPAL VERSION 2.3.0)
set (PROJECT_BUGREPORT opal@lists.psi.ch) set (PROJECT_BUGREPORT opal@lists.psi.ch)
string (REGEX REPLACE "\\.([0-9])\\." ".0\\1." PACKAGE_VERSION ${PROJECT_VERSION}) string (REGEX REPLACE "\\.([0-9])\\." ".0\\1." PACKAGE_VERSION ${PROJECT_VERSION})
...@@ -12,7 +12,7 @@ if (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE) ...@@ -12,7 +12,7 @@ if (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
set (CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING set (CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
FORCE FORCE
) )
endif () endif ()
cmake_host_system_information (RESULT HOSTNAME QUERY HOSTNAME) cmake_host_system_information (RESULT HOSTNAME QUERY HOSTNAME)
...@@ -63,7 +63,7 @@ if ( ${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel" ) ...@@ -63,7 +63,7 @@ if ( ${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel" )
add_compile_options ("-diag-disable 383") add_compile_options ("-diag-disable 383")
add_compile_options ("-diag-disable 981") add_compile_options ("-diag-disable 981")
if (ENABLE_OpenMP) if (ENABLE_OpenMP)
add_compile_options (-openmp) add_compile_options (-openmp)
endif () endif ()
elseif (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang") elseif (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
...@@ -77,7 +77,7 @@ elseif (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang") ...@@ -77,7 +77,7 @@ elseif (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
# Allow overloaded virtual functions (instances to be fixed in OPAL) # Allow overloaded virtual functions (instances to be fixed in OPAL)
#add_compile_options (-Wno-overloaded-virtual) #add_compile_options (-Wno-overloaded-virtual)
if (ENABLE_OpenMP) if (ENABLE_OpenMP)
add_compile_options (-fopenmp) add_compile_options (-fopenmp)
endif () endif ()
# Not 100% clear why we need this. But without we get warning while # Not 100% clear why we need this. But without we get warning while
# linking with HDF5 # linking with HDF5
...@@ -87,8 +87,7 @@ elseif (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU") ...@@ -87,8 +87,7 @@ elseif (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
if (${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS "4.7.3") if (${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS "4.7.3")
message (FATAL_ERROR "To build OPAL you need GCC version 4.7.3 or greater") message (FATAL_ERROR "To build OPAL you need GCC version 4.7.3 or greater")
endif () endif ()
# Warning flags, -Wno-unused-local-typedefs is needed for boost versions below 1.59 # Warning flags
add_compile_options (-Wno-unused-local-typedefs -Werror=unused-variable)
if (ENABLE_OpenMP) if (ENABLE_OpenMP)
add_compile_options (-fopenmp) add_compile_options (-fopenmp)
...@@ -110,7 +109,7 @@ if (CMAKE_Fortran_COMPILER) ...@@ -110,7 +109,7 @@ if (CMAKE_Fortran_COMPILER)
else () else ()
message ("No Fortran compiler found (optional)") message ("No Fortran compiler found (optional)")
if (ENABLE_AMR) if (ENABLE_AMR)
message (FATAL_ERROR "AMR is enabled but no Fortran compiler found!") message (FATAL_ERROR "AMR is enabled but no Fortran compiler found!")
endif () endif ()
endif () endif ()
...@@ -131,7 +130,7 @@ if (USE_STATIC_LIBRARIES) ...@@ -131,7 +130,7 @@ if (USE_STATIC_LIBRARIES)
endif () endif ()
set (Boost_USE_MULTITHREADED OFF) set (Boost_USE_MULTITHREADED OFF)
set (Boost_USE_STATIC_RUNTIME OFF) set (Boost_USE_STATIC_RUNTIME OFF)
find_package (Boost 1.60.0 find_package (Boost 1.66.0
REQUIRED COMPONENTS chrono filesystem iostreams regex serialization system timer) REQUIRED COMPONENTS chrono filesystem iostreams regex serialization system timer)
message ("Found Boost include dir: ${Boost_INCLUDE_DIR}") message ("Found Boost include dir: ${Boost_INCLUDE_DIR}")
message ("Found Boost library dir: ${Boost_LIBRARY_DIR}") message ("Found Boost library dir: ${Boost_LIBRARY_DIR}")
...@@ -285,12 +284,12 @@ install ( ...@@ -285,12 +284,12 @@ install (
DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/cmake/${PROJECT_NAME}" DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/cmake/${PROJECT_NAME}"
RENAME ${PROJECT_NAME}Config.cmake RENAME ${PROJECT_NAME}Config.cmake
) )
# vi: set et ts=4 sw=4 sts=4: # vi: set et ts=4 sw=4 sts=4:
# Local Variables: # Local Variables:
# mode: cmake # mode: cmake
# cmake-tab-width: 4 # cmake-tab-width: 4
# indent-tabs-mode: nil # indent-tabs-mode: nil
# require-final-newline: nil # require-final-newline: nil
# End: # End:
\ No newline at end of file
...@@ -23,11 +23,7 @@ namespace client ...@@ -23,11 +23,7 @@ namespace client
template <typename Iterator> template <typename Iterator>
struct annotation struct annotation
{ {
#if BOOST_VERSION >= 106200
template <typename> template <typename>
#else
template <typename, typename>
#endif
struct result { typedef void type; }; struct result { typedef void type; };
std::vector<Iterator>& iters; std::vector<Iterator>& iters;
......
...@@ -19,11 +19,7 @@ namespace client ...@@ -19,11 +19,7 @@ namespace client
template <typename Iterator> template <typename Iterator>
struct error_handler struct error_handler
{ {
#if BOOST_VERSION >= 106200
template <typename> template <typename>
#else
template <typename, typename, typename>
#endif
struct result { typedef void type; }; struct result { typedef void type; };
error_handler(Iterator first, Iterator last) error_handler(Iterator first, Iterator last)
......
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
#include "Utilities/Options.h" #include "Utilities/Options.h"
#include "Utilities/OpalException.h" #include "Utilities/OpalException.h"
#include <boost/numeric/odeint/stepper/runge_kutta4.hpp>
#include <boost/numeric/ublas/matrix.hpp> #include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/matrix_sparse.hpp> #include <boost/numeric/ublas/matrix_sparse.hpp>
#include <boost/numeric/ublas/vector.hpp> #include <boost/numeric/ublas/vector.hpp>
...@@ -46,17 +48,11 @@ ...@@ -46,17 +48,11 @@
#include <gsl/gsl_math.h> #include <gsl/gsl_math.h>
#include <gsl/gsl_eigen.h> #include <gsl/gsl_eigen.h>
#include <boost/numeric/odeint/stepper/runge_kutta4.hpp>
#if BOOST_VERSION >= 106000
#include <boost/numeric/odeint/integrate/check_adapter.hpp>
#endif
#include "matrix_vector_operation.h" #include "matrix_vector_operation.h"
#include "ClosedOrbitFinder.h" #include "ClosedOrbitFinder.h"
#include "MapGenerator.h" #include "MapGenerator.h"
#include "Harmonics.h" #include "Harmonics.h"
extern Inform *gmsg; extern Inform *gmsg;
/// @brief This class computes the matched distribution /// @brief This class computes the matched distribution
......
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