summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-06-05 12:32:10 -0400
committerNat Goodspeed <nat@lindenlab.com>2023-06-05 12:32:10 -0400
commit19e9e8cf419c18b527bc19c5da1ab2cdf040dd0a (patch)
tree051e7582b4fbed2a62b1f8bf643e5fdea9120197 /indra
parentb5e1484c00880bfd8001cd1418f3eb96fc38b89e (diff)
SL-18837: Try to silence cascade of Boost.Bind warning messages.
Diffstat (limited to 'indra')
-rw-r--r--indra/cmake/00-Common.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/cmake/00-Common.cmake b/indra/cmake/00-Common.cmake
index bf5a107c73..dc9ccd356a 100644
--- a/indra/cmake/00-Common.cmake
+++ b/indra/cmake/00-Common.cmake
@@ -26,6 +26,11 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} $ENV{LL_BUILD}")
# Portable compilation flags.
add_compile_definitions( ADDRESS_SIZE=${ADDRESS_SIZE})
+# Because older versions of Boost.Bind dumped placeholders _1, _2 et al. into
+# the global namespace, Boost now requires either BOOST_BIND_NO_PLACEHOLDERS
+# to avoid that or BOOST_BIND_GLOBAL_PLACEHOLDERS to state that we require it
+# -- which we do. Without one or the other, we get a ton of Boost warnings.
+add_compile_definitions(BOOST_BIND_GLOBAL_PLACEHOLDERS)
# Configure crash reporting
set(RELEASE_CRASH_REPORTING OFF CACHE BOOL "Enable use of crash reporting in release builds")