From 7f159ab29deedaa316135da51b893b8e20fa263b Mon Sep 17 00:00:00 2001 From: debloip Date: Fri, 22 Dec 2023 11:29:39 -0500 Subject: [PATCH] HYDRA-700 : Avoid Boost autolinking libraries --- cmake/compiler_config.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/compiler_config.cmake b/cmake/compiler_config.cmake index 78529685eb..db021f6df1 100644 --- a/cmake/compiler_config.cmake +++ b/cmake/compiler_config.cmake @@ -131,9 +131,10 @@ function(mayaHydra_compile_config TARGET) ) endif() - # Remove annoying TBB warnings. + # Common definitions target_compile_definitions(${TARGET} PRIVATE - TBB_SUPPRESS_DEPRECATED_MESSAGES + TBB_SUPPRESS_DEPRECATED_MESSAGES # Remove TBB deprecation warnings + BOOST_ALL_NO_LIB # Avoid Boost autolinking libraries ) endfunction()