Skip to content

Commit 6709466

Browse files
committed
[CMake] silence warning on boost bind
1 parent 9ed232c commit 6709466

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
@@ -37,6 +37,12 @@ ADD_PROJECT_DEPENDENCY(Boost REQUIRED COMPONENTS serialization system thread)
3737
ADD_PROJECT_DEPENDENCY(Eigen3 REQUIRED PKG_CONFIG_REQUIRES eigen3)
3838
SEARCH_FOR_PTHREAD()
3939

40+
IF(Boost_VERSION GREATER 107299)
41+
# Silence a warning about a deprecated use of boost bind by boost >= 1.73
42+
# without dropping support for boost < 1.73
43+
ADD_DEFINITIONS(-DBOOST_BIND_GLOBAL_PLACEHOLDERS)
44+
ENDIF()
45+
4046
# Add configuration headers for plug-ins.
4147
GENERATE_CONFIGURATION_HEADER(
4248
${HEADER_DIR} config-tracer.hh DG_TRACER tracer_EXPORTS)

0 commit comments

Comments
 (0)