message: Set necessary PATH and PYTHONPATH env vars for stub file generation during CMake build
diff: @@ -87,9 +87,19 @@ if (DRJIT_MASTER_PROJECT)
  find_package(Python COMPONENTS Interpreter REQUIRED)
  endif()
  + if (MSVC)
  + add_custom_target(drjit_stub_file_generation ALL COMMAND
  + ${CMAKE_COMMAND} -E env
  + "PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}/../../;$ENV{PYTHONPATH}"
  + "${Python_EXECUTABLE}" -Xutf8 ${CMAKE_CURRENT_SOURCE_DIR}/../../resources/generate_stub_files.py
  + ${CMAKE_CURRENT_BINARY_DIR}/../../drjit DEPENDS drjit-python)
  + else()
  add_custom_target(drjit_stub_file_generation ALL COMMAND
  + ${CMAKE_COMMAND} -E env
  + "PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}/../../:$ENV{PYTHONPATH}"
  "${Python_EXECUTABLE}" -Xutf8 ${CMAKE_CURRENT_SOURCE_DIR}/../../resources/generate_stub_files.py
  - ${CMAKE_CURRENT_BINARY_DIR}/../../drjit/ ${CMAKE_CURRENT_BINARY_DIR}/../../ DEPENDS drjit-python)
  + ${CMAKE_CURRENT_BINARY_DIR}/../../drjit DEPENDS drjit-python)
  + endif()
  if (NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
  add_dependencies(drjit_stub_file_generation copy-python-files)
  