Skip to content

Commit cae456d

Browse files
committed
[CMake] workaround boost bind warnings
1 parent ee127dd commit cae456d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ IF(BUILD_TESTING)
4343
FIND_PACKAGE(Boost REQUIRED COMPONENTS unit_test_framework program_options)
4444
ENDIF()
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
IF(BUILD_PYTHON_INTERFACE)
4753
FINDPYTHON()
4854
STRING(REGEX REPLACE "-" "_" PYTHON_DIR ${CUSTOM_HEADER_DIR})

0 commit comments

Comments
 (0)