add_flag( CMAKE_CXX_FLAGS "-qsuppress=1586-267")# 1586-267 (I) Inlining of specified subprogram failed due to the presence of a C++ exception handler
add_flag( CMAKE_CXX_FLAGS "-qsuppress=1586-266")# 1586-266 (I) Inlining of specified subprogram failed due to the presence of a global label
add_flag( CMAKE_CXX_FLAGS "-qsuppress=1540-0724")# 1540-0724 (W) The non-type template argument "2147483648" of type "T" has wrapped [coming from boost/integer_traits.hpp]
add_flag( CMAKE_CXX_FLAGS "-qsuppress=1540-0095")# 1540-0095 (W) The friend function declaration ... [coming from boost/mpl/map/aux_/map0.hpp]
add_flag( CMAKE_CXX_FLAGS "-qsuppress=1500-030")# 1500-030: (I) INFORMATION: [...] Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192.
add_flag( CMAKE_C_FLAGS "-qsuppress=1500-030")# 1500-030: (I) INFORMATION: [...] Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192.
CMAKE_DEPENDENT_OPTION( PYTHON_FIXED_HYPOT_REDEFINITION "fixed _hypot redefinition by python" OFF "WALBERLA_BUILD_WITH_PYTHON" OFF )
if( NOT PYTHON_FIXED_HYPOT_REDEFINITION )
message( WARNING "Make sure you modified your pyconfig.h that _hypot is not redefined -> see: http://connect.microsoft.com/VisualStudio/feedback/details/633988/warning-in-math-h-line-162-re-nonstandard-extensions-used")
message(FATAL_ERROR "Please update git submodules or install pybind11 via pip.")
else()
message(FATAL_ERROR "Please install pybind11 via pip or download it to ${PROJECT_SOURCE_DIR}/extern/pybind11.")
endif()
endif()
add_subdirectory(extern/pybind11)
# if pybind11 was installed into ${PYTHON_INCLUDE_DIR} (e.g. by pip), that will have a higher priority than the Git submodule unless we reorder the search path
# introduced in 2.6.0 (https://github.com/pybind/pybind11/issues/2709), fixed in 2.6.2 (https://github.com/pybind/pybind11/pull/2716)
set( WALBERLA_BUILD_WITH_BOOST TRUE CACHE INTERNAL "Build with Boost")
else( Boost_FOUND )
if((WALBERLA_USE_STD_EXPERIMENTAL_FILESYSTEM OR WALBERLA_USE_STD_FILESYSTEM)AND(WALBERLA_USE_STD_EXPERIMENTAL_ANY OR WALBERLA_USE_STD_ANY)AND(WALBERLA_USE_STD_EXPERIMENTAL_OPTIONAL OR WALBERLA_USE_STD_OPTIONAL) AND NOT WALBERLA_BUILD_WITH_PYTHON)
...
...
@@ -754,31 +734,6 @@ else( Boost_FOUND )
endif( Boost_FOUND )
# Check if Python3 found and look for according boost python library
if( WALBERLA_BUILD_WITH_PYTHON AND NOT WALBERLA_CXX_COMPILER_IS_MSVC)
SET(_boost_MULTITHREADED "")
if(Boost_USE_MULTITHREADED OR Boost_USE_MULTITHREADED_LIBRARY)