Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cmake test fixes to go with .mod file changes made recently #2931

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

seando-adsk
Copy link
Collaborator

Add cmake test fixes to go with .mod file changes made here:
#2867

@seando-adsk seando-adsk requested a review from ppt-adsk March 9, 2023 20:10
@@ -43,6 +43,7 @@ endfunction()
# that mayaUsd_add_test manages (and will append) are:
# PATH
# PYTHONPATH
# PXR_USD_WINDOWS_DLL_PATH
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In PR #2867 a client added this env var to the .mod files. I've updated our testing environment to match.

list(APPEND MAYAUSD_VARNAME_XBMLANGPATH
"${CMAKE_INSTALL_PREFIX}/lib/icons")
# MayaUsd core library
if (BUILD_MAYAUSD_LIBRARY)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved the various env vars inside of if blocks based on their respective build option.

Comment on lines +232 to +235
if(IS_WINDOWS)
list(APPEND MAYAUSD_VARNAME_PXR_USD_WINDOWS_DLL_PATH
"${CMAKE_INSTALL_PREFIX}/lib")
endif()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is new.

Comment on lines +252 to +253
list(APPEND MAYAUSD_VARNAME_PXR_MTLX_STDLIB_SEARCH_PATHS
"${CMAKE_INSTALL_PREFIX}/libraries")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved up from below.

Comment on lines +272 to +275
if(IS_WINDOWS)
list(APPEND MAYAUSD_VARNAME_PXR_USD_WINDOWS_DLL_PATH
"${CMAKE_INSTALL_PREFIX}/plugin/pxr/maya/lib")
endif()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is new.

Comment on lines +306 to +308
if(IS_WINDOWS)
list(APPEND MAYAUSD_VARNAME_PXR_USD_WINDOWS_DLL_PATH $ENV{PXR_USD_WINDOWS_DLL_PATH})
endif()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is new.

Comment on lines +338 to +343
list(APPEND MAYAUSD_VARNAME_PXR_USD_WINDOWS_DLL_PATH
"${USD_INSTALL_LOCATION}/bin")
list(APPEND MAYAUSD_VARNAME_PXR_USD_WINDOWS_DLL_PATH
"${USD_INSTALL_LOCATION}/lib")
list(APPEND MAYAUSD_VARNAME_PXR_USD_WINDOWS_DLL_PATH
"${USD_INSTALL_LOCATION}/plugin/usd")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is new.

Comment on lines +345 to +346
list(APPEND MAYAUSD_VARNAME_PXR_MTLX_STDLIB_SEARCH_PATHS
"${PXR_USD_LOCATION}/libraries")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved here (into USD section) from above

@seando-adsk seando-adsk added the unit test Related to unit tests (both python or c++) label Mar 9, 2023
@seando-adsk
Copy link
Collaborator Author

Sorry I accidentally added PierreT as reviewer when I wanted to add PierreB.

Copy link
Collaborator

@pierrebai-adsk pierrebai-adsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not expert enough to debug cmake visually, but did not see any abvious problem. Looks good to me.

@seando-adsk seando-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Mar 10, 2023
@seando-adsk seando-adsk merged commit 8ad3132 into dev Mar 10, 2023
@seando-adsk seando-adsk deleted the donnels/update_test_env_vars branch March 15, 2023 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge Development process is finished, PR is ready for merge unit test Related to unit tests (both python or c++)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants