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()