MaterialX is an open standard for representing rich material and look-development content in computer graphics, enabling its platform-independent description and exchange across applications and renderers. PR: 283175
12 lines
570 B
Plaintext
12 lines
570 B
Plaintext
--- python/CMakeLists.txt.orig 2025-11-25 20:08:57 UTC
|
|
+++ python/CMakeLists.txt
|
|
@@ -12,7 +12,7 @@ if(MATERIALX_INSTALL_PYTHON AND PYTHON_EXECUTABLE AND
|
|
endif()
|
|
|
|
if(MATERIALX_INSTALL_PYTHON AND PYTHON_EXECUTABLE AND NOT SKBUILD)
|
|
- set(SETUP_PY "${CMAKE_INSTALL_PREFIX}/python/setup.py")
|
|
+ set(SETUP_PY "${CMAKE_CURRENT_BINARY_DIR}/python/setup.py")
|
|
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/setup.py.in" "${SETUP_PY}")
|
|
install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} -m pip install . WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/python)")
|
|
endif()
|