mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 18:05:21 +00:00
Don't try to remove the CMAKE_INSTALL_PREFIX from the
``python_install_dir``. The implementation was broken because we would strip off ``/usr`` and then install into ``/lib/python-3.5/site-packages``. We could remove the leading slash to make sure we install into the CMAKE_INSTALL_PREFIX but doing so seems unnecessarily complicated given that DESTDIR still seems to be respected even when given absolute paths to the CMake ``install()``.
This commit is contained in:
parent
9b48b5ca83
commit
849c16c4fc
|
@ -95,10 +95,9 @@ if (INSTALL_PYTHON_BINDINGS)
|
|||
"does not exist under the install prefix \"${CMAKE_INSTALL_PREFIX}\"."
|
||||
" Running the install target may lead to a broken installation."
|
||||
)
|
||||
set(python_install_dir "${python_pkg_dir}")
|
||||
else()
|
||||
string(REPLACE "${CMAKE_INSTALL_PREFIX}" "" python_install_dir "${python_pkg_dir}")
|
||||
endif()
|
||||
# Using DESTDIR still seems to work even if we use an absolute path
|
||||
set(python_install_dir "${python_pkg_dir}")
|
||||
message(STATUS "Python bindings will be installed to \"${python_install_dir}\"")
|
||||
install(FILES ${build_z3_python_bindings_target_depends}
|
||||
DESTINATION "${python_install_dir}"
|
||||
|
|
Loading…
Reference in a new issue