Skip to content

Commit df2244e

Browse files
committed
windows fix
Signed-off-by: Vlad Gheorghiu <[email protected]>
1 parent ecba842 commit df2244e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pyqpp/CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,11 @@ file(MAKE_DIRECTORY "${STUBGEN_OUTPUT_PATH}")
5151
add_custom_command(
5252
TARGET pyqpp
5353
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
54+
COMMAND ${Python3_EXECUTABLE} -m pybind11_stubgen pyqpp --output-dir
55+
${STUBGEN_OUTPUT_PATH} --ignore-all-errors
5856
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
5957
COMMENT "Generating Python stubs for pyqpp..."
60-
VERBATIM)
58+
VERBATIM ENV PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}/Release)
6159

6260
# Create an empty "py.typed" file in the build directory
6361
file(TOUCH "${CMAKE_CURRENT_BINARY_DIR}/py.typed")

0 commit comments

Comments
 (0)