Skip to content

Commit 973f986

Browse files
authored
Export MATERIALX_INSTALL_STDLIB_PATH in CMake config (#2724)
MATERIALX_INSTALL_STDLIB_PATH can be used to control where the data library is installed, but this needs to be reflected in the exported cmake config file as well. @jfpanisset reported this in this [slack conversation](https://academysoftwarefdn.slack.com/archives/C0230LWBE2X/p1765194306347839).
1 parent 9192a3c commit 973f986

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/MaterialXConfig.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
2020
# MATERIALX_RESOURCES_DIR Path to MaterialX Resources (sample data, mtlx etc)
2121

2222
set_and_check(MATERIALX_BASE_DIR "@PACKAGE_CMAKE_INSTALL_PREFIX@")
23-
set_and_check(MATERIALX_STDLIB_DIR "@PACKAGE_CMAKE_INSTALL_PREFIX@/libraries")
23+
set_and_check(MATERIALX_STDLIB_DIR "@PACKAGE_CMAKE_INSTALL_PREFIX@/@MATERIALX_INSTALL_STDLIB_PATH@")
2424
if(@MATERIALX_BUILD_PYTHON@ AND @MATERIALX_INSTALL_PYTHON@)
2525
set_and_check(MATERIALX_PYTHON_DIR "@PACKAGE_CMAKE_INSTALL_PREFIX@/python")
2626
endif()

0 commit comments

Comments
 (0)