We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2fbe54 commit 48e12a5Copy full SHA for 48e12a5
cmake/PythonBindings.cmake
@@ -53,9 +53,8 @@ if(PYTHONLIBS_FOUND)
53
set_target_properties(pyariadne-algebra PROPERTIES PREFIX "" OUTPUT_NAME "algebra" SUFFIX ".so")
54
target_link_libraries (pyariadne-algebra PUBLIC ${GCOV_LIBRARIES} ariadne PRIVATE pybind11::module)
55
56
- execute_process(COMMAND ${PYTHON_EXECUTABLE} -m site --user-site OUTPUT_VARIABLE PYARIADNE_INSTALL_DIR)
57
- string(STRIP ${PYARIADNE_INSTALL_DIR} PYARIADNE_INSTALL_DIR)
58
- install(TARGETS pyariadne DESTINATION ${PYARIADNE_INSTALL_DIR})
+ find_package(Python)
+ install(TARGETS pyariadne DESTINATION ${Python_SITEARCH})
59
60
add_subdirectory(python/tests)
61
0 commit comments