diff --git a/cmake/test.cmake b/cmake/test.cmake index 5358b5540f..c5bf6b674d 100644 --- a/cmake/test.cmake +++ b/cmake/test.cmake @@ -394,6 +394,10 @@ finally: endif() endforeach() + # Unset any MAYA_MODULE_PATH as we set all the individual variables + # so we don't want to conflict with a MayaUsd module. + set_property(TEST ${test_name} APPEND PROPERTY ENVIRONMENT "MAYA_MODULE_PATH=") + # set all env vars foreach(pathvar ${ALL_PATH_VARS}) set_property(TEST "${test_name}" APPEND PROPERTY ENVIRONMENT