We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecba842 commit df2244eCopy full SHA for df2244e
1 file changed
pyqpp/CMakeLists.txt
@@ -51,13 +51,11 @@ file(MAKE_DIRECTORY "${STUBGEN_OUTPUT_PATH}")
51
add_custom_command(
52
TARGET pyqpp
53
POST_BUILD
54
- COMMAND
55
- PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}/Release:$ENV{PYTHONPATH}
56
- ${Python3_EXECUTABLE} -m pybind11_stubgen pyqpp --output-dir
57
- ${STUBGEN_OUTPUT_PATH} --ignore-all-errors
+ COMMAND ${Python3_EXECUTABLE} -m pybind11_stubgen pyqpp --output-dir
+ ${STUBGEN_OUTPUT_PATH} --ignore-all-errors
58
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
59
COMMENT "Generating Python stubs for pyqpp..."
60
- VERBATIM)
+ VERBATIM ENV PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}/Release)
61
62
# Create an empty "py.typed" file in the build directory
63
file(TOUCH "${CMAKE_CURRENT_BINARY_DIR}/py.typed")
0 commit comments