Skip to content

Commit 30f50b0

Browse files
committed
[CMake] workaround boost bind warnings
1 parent 05d4a99 commit 30f50b0

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
@@ -43,6 +43,12 @@ IF(BUILD_PYTHON_INTERFACE)
4343
SEARCH_FOR_BOOST_PYTHON(REQUIRED)
4444
ENDIF(BUILD_PYTHON_INTERFACE)
4545

46+
IF(Boost_VERSION GREATER 107299 OR Boost_VERSION_MACRO GREATER 107299)
47+
# Silence a warning about a deprecated use of boost bind by boost >= 1.73
48+
# without dropping support for boost < 1.73
49+
ADD_DEFINITIONS(-DBOOST_BIND_GLOBAL_PLACEHOLDERS)
50+
ENDIF()
51+
4652
# Main Library
4753
SET(${PROJECT_NAME}_HEADERS
4854
include/${CUSTOM_HEADER_DIR}/inverted-pendulum.hh

0 commit comments

Comments
 (0)