fix boost auto-link breaking some win scons builds

This commit is contained in:
2024-10-29 17:50:14 -05:00
committed by Celtic Minstrel
parent 787b613c07
commit 3296226a6d

View File

@@ -208,6 +208,9 @@ if platform == "darwin":
bundle_libraries_for(target, [File(check_path)], env)
break
elif platform == "win32":
# Boost has a very obnoxious auto-link feature that breaks some local windows builds
env.Append(CPPDEFINES=['BOOST_ALL_NO_LIB'])
if 'msvc' in env['TOOLS']:
vcpkg_prefix = path.join((os.environ['HOME'] if 'HOME' in os.environ else 'C:\\'), 'vcpkg')
vcpkg_installed = path.join(vcpkg_prefix, 'installed', f'x{arch_short}-windows')