[Bf-blender-cvs] [86bdd2acc66] master: Windows: Fix build issue with VCPKG

Ray Molenkamp noreply at git.blender.org
Tue Nov 10 21:24:01 CET 2020


Commit: 86bdd2acc66c95c3698525ab3d5d6263cc1b825c
Author: Ray Molenkamp
Date:   Tue Nov 10 13:23:55 2020 -0700
Branches: master
https://developer.blender.org/rB86bdd2acc66c95c3698525ab3d5d6263cc1b825c

Windows: Fix build issue with VCPKG

For blender we disable VCPKG to prevent it from picking
up the wrong libraries from VCPKG rather than our lib folder
some of the cycles tests needed this to link correctly.

reported by @alef on chat

===================================================================

M	build_files/cmake/Modules/GTestTesting.cmake

===================================================================

diff --git a/build_files/cmake/Modules/GTestTesting.cmake b/build_files/cmake/Modules/GTestTesting.cmake
index 2e45f253a9a..6406dd6aa28 100644
--- a/build_files/cmake/Modules/GTestTesting.cmake
+++ b/build_files/cmake/Modules/GTestTesting.cmake
@@ -97,6 +97,7 @@ macro(BLENDER_SRC_GTEST_EX)
       set_tests_properties(${TARGET_NAME} PROPERTIES ENVIRONMENT LSAN_OPTIONS=exitcode=0)
     endif()
     if(WIN32)
+      set_target_properties(${TARGET_NAME} PROPERTIES VS_GLOBAL_VcpkgEnabled "false")
       unset(MANIFEST)
     endif()
     unset(TEST_INC)



More information about the Bf-blender-cvs mailing list