From 1bfaa6284570ce161b0868d7d2e5edfd96830092 Mon Sep 17 00:00:00 2001 From: Yves Boudreault Date: Mon, 1 Nov 2021 10:30:43 -0400 Subject: [PATCH] MAYA-114428 Compile mayapy on Linux and OSX to avoid search path issues. Set Frameworks to force the test to take Python from the correct path. --- cmake/test.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/test.cmake b/cmake/test.cmake index 0bc42f20a2..f90b744f10 100644 --- a/cmake/test.cmake +++ b/cmake/test.cmake @@ -360,6 +360,8 @@ finally: # Necessary for tests like DiffCore to find python set_property(TEST "${test_name}" APPEND PROPERTY ENVIRONMENT "DYLD_LIBRARY_PATH=${MAYA_LOCATION}/MacOS:$ENV{DYLD_LIBRARY_PATH}") + set_property(TEST "${test_name}" APPEND PROPERTY ENVIRONMENT + "DYLD_FRAMEWORK_PATH=${MAYA_LOCATION}/Maya.app/Contents/Frameworks") endif() if (PREFIX_INTERACTIVE)