Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 94f6b61

Browse files
committed
[CMake] silence boost python warning on boost bind
Boost 1.73 added a boring warning about deprecated use of boost bind, which is still used by boost python. As of Boost 1.75, this is still not fixed: boostorg/python#296 boostorg/python#315 ref stack-of-tasks/eigenpy#216
1 parent 48c539c commit 94f6b61

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ IF(BUILD_PYTHON_INTERFACE)
4444
SEARCH_FOR_BOOST_PYTHON(REQUIRED)
4545
STRING(REGEX REPLACE "-" "_" PYTHON_DIR ${CUSTOM_HEADER_DIR})
4646
ADD_PROJECT_DEPENDENCY(dynamic-graph-python 4.0.0 REQUIRED)
47+
48+
IF(Boost_VERSION GREATER 107299)
49+
# Silence a warning about a deprecated use of boost bind by boost python
50+
# at least fo boost 1.73 to 1.75
51+
ADD_DEFINITIONS(-DBOOST_BIND_GLOBAL_PLACEHOLDERS)
52+
ENDIF()
4753
ENDIF(BUILD_PYTHON_INTERFACE)
4854

4955
# Main Library

0 commit comments

Comments
 (0)