Commit 3ae34565 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[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:
https://github.com/boostorg/python/pull/296
https://github.com/boostorg/python/pull/315
parent efc39228
Pipeline #12665 passed with stage
in 13 minutes and 51 seconds
......@@ -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}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment