File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -8,16 +8,19 @@ configure_file(README.md README.md COPYONLY)
88find_package (Python3 REQUIRED COMPONENTS Interpreter)
99
1010add_custom_target (python
11- COMMAND ${Python3_EXECUTABLE} -m build .
11+ COMMAND ${Python3_EXECUTABLE} -m build " ${CMAKE_CURRENT_BINARY_DIR} "
1212 DEPENDS opendht opendht_cpp.pxd opendht.pyx pyproject.toml
1313 ${CURRENT_SOURCE_DIR} /opendht/__init__.py
1414 ${CURRENT_SOURCE_DIR} /opendht/aio.py)
1515
1616install (CODE [[
1717 execute_process(
18- COMMAND "${Python3_EXECUTABLE}" -m pip install --no-deps --break-system-packages .
18+ COMMAND "${Python3_EXECUTABLE}" -m pip install --no-deps --break-system-packages "${CMAKE_CURRENT_BINARY_DIR}"
1919 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
20+ OUTPUT_VARIABLE _pip_output
21+ ERROR_VARIABLE _pip_output
2022 RESULT_VARIABLE _pip_result)
23+ message(STATUS ${_pip_output})
2124 if(NOT _pip_result EQUAL 0)
2225 message(FATAL_ERROR "pip install failed with code ${_pip_result}")
2326 endif()
You can’t perform that action at this time.
0 commit comments