From ca9992b25520241d2b5371c4a23460bfded9daa4 Mon Sep 17 00:00:00 2001 From: Samir Manar Date: Thu, 9 Jan 2025 16:12:34 -0500 Subject: [PATCH] Fix the boost dependency. --- build_scripts/build_usd.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/build_scripts/build_usd.py b/build_scripts/build_usd.py index 8b0ddf5f81..4cb4f0bcb6 100644 --- a/build_scripts/build_usd.py +++ b/build_scripts/build_usd.py @@ -1356,8 +1356,8 @@ def InstallOpenVDB(context, force, buildArgs): # Make sure to use boost installed by the build script and not any # system installed boost - extraArgs.append('-DBoost_NO_BOOST_CMAKE=On') - extraArgs.append('-DBoost_NO_SYSTEM_PATHS=True') + extraArgs.append('-DBoost_NO_BOOST_CMAKE=OFF') + extraArgs.append('-DBoost_NO_SYSTEM_PATHS=ON') extraArgs.append('-DBLOSC_ROOT="{instDir}"' .format(instDir=context.instDir)) @@ -1410,8 +1410,8 @@ def InstallOpenImageIO(context, force, buildArgs): # Make sure to use boost installed by the build script and not any # system installed boost - extraArgs.append('-DBoost_NO_BOOST_CMAKE=On') - extraArgs.append('-DBoost_NO_SYSTEM_PATHS=True') + extraArgs.append('-DBoost_NO_BOOST_CMAKE=OFF') + extraArgs.append('-DBoost_NO_SYSTEM_PATHS=ON') # OpenImageIO 2.3.5 changed the default postfix for debug library # names from "" to "_d". USD's build system currently does not support @@ -1870,8 +1870,9 @@ def InstallUSD(context, force, buildArgs): # Make sure to use boost installed by the build script and not any # system installed boost - extraArgs.append('-DBoost_NO_BOOST_CMAKE=On') - extraArgs.append('-DBoost_NO_SYSTEM_PATHS=True') + extraArgs.append('-DBoost_NO_BOOST_CMAKE=OFF') + extraArgs.append('-DBoost_NO_SYSTEM_PATHS=ON') + extraArgs += buildArgs RunCMake(context, force, extraArgs)