Cmake/windows: Fix vcpkg bypassing our libs folder.
Occasionally we get reports of people that build blender and end up with either build errors or end up with builds that do not run on other systems. The root cause is when you install vpckg and integrate it into the build system it puts the search path for its includes and libraries before anything else. previously we told people to either uninstall vcpkg or remove the conflicting packages, which was not great. this change opts out of the use of vcpkg for blender only, so people can keep using it for other work without issues.
This commit is contained in:
parent
9d7a03ab11
commit
34b3a9583a
|
@ -1050,6 +1050,12 @@ unset(LIB)
|
||||||
|
|
||||||
setup_liblinks(blender)
|
setup_liblinks(blender)
|
||||||
|
|
||||||
|
# vcpkg substitutes our libs with theirs, which will cause issues when you
|
||||||
|
# you run these builds on other systems due to missing dlls. So we opt out
|
||||||
|
# the use of vcpkg
|
||||||
|
if (WIN32)
|
||||||
|
set_target_properties(blender PROPERTIES VS_GLOBAL_VcpkgEnabled "false")
|
||||||
|
endif()
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Setup launcher
|
# Setup launcher
|
||||||
|
|
Loading…
Reference in New Issue