-
Notifications
You must be signed in to change notification settings - Fork 203
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
Conversation
@@ -43,6 +43,7 @@ endfunction() | |||
# that mayaUsd_add_test manages (and will append) are: | |||
# PATH | |||
# PYTHONPATH | |||
# PXR_USD_WINDOWS_DLL_PATH |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
if(IS_WINDOWS) | ||
list(APPEND MAYAUSD_VARNAME_PXR_USD_WINDOWS_DLL_PATH | ||
"${CMAKE_INSTALL_PREFIX}/lib") | ||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is new.
list(APPEND MAYAUSD_VARNAME_PXR_MTLX_STDLIB_SEARCH_PATHS | ||
"${CMAKE_INSTALL_PREFIX}/libraries") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved up from below.
if(IS_WINDOWS) | ||
list(APPEND MAYAUSD_VARNAME_PXR_USD_WINDOWS_DLL_PATH | ||
"${CMAKE_INSTALL_PREFIX}/plugin/pxr/maya/lib") | ||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is new.
if(IS_WINDOWS) | ||
list(APPEND MAYAUSD_VARNAME_PXR_USD_WINDOWS_DLL_PATH $ENV{PXR_USD_WINDOWS_DLL_PATH}) | ||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is new.
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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is new.
list(APPEND MAYAUSD_VARNAME_PXR_MTLX_STDLIB_SEARCH_PATHS | ||
"${PXR_USD_LOCATION}/libraries") |
There was a problem hiding this comment.
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
Sorry I accidentally added PierreT as reviewer when I wanted to add PierreB. |
There was a problem hiding this 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.
Add cmake test fixes to go with .mod file changes made here:
#2867