diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ce516f47b716a4943b661ae20b6333774f4132c..762bc035bdc10226c296a347425736789433b247 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ # Copyright (c) 2018-2020 INRIA # -CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +CMAKE_MINIMUM_REQUIRED(VERSION 3.1) SET(PROJECT_NAME eigenpy) SET(PROJECT_DESCRIPTION "Bindings between Numpy and Eigen using Boost.Python") @@ -189,6 +189,12 @@ ELSE() TARGET_COMPILE_OPTIONS(${PROJECT_NAME} PRIVATE $<$<CXX_COMPILER_ID:MSVC>:-bigobj>) ENDIF() +IF(Boost_VERSION GREATER 107299) + # Silence a warning about a deprecated use of boost bind by boost python + # at least fo boost 1.73 to 1.75 + ADD_DEFINITIONS(-DBOOST_BIND_GLOBAL_PLACEHOLDERS) +ENDIF() + TARGET_LINK_BOOST_PYTHON(${PROJECT_NAME} PUBLIC) INSTALL(TARGETS ${PROJECT_NAME} EXPORT ${TARGETS_EXPORT_NAME}