mirror of https://github.com/ecmwf/eccodes.git
ECC-296 Python: do not prepend DESTDIR to install RPATH
This commit is contained in:
parent
fc4e391a1c
commit
4745135fc1
|
@ -52,6 +52,6 @@ if( HAVE_PYTHON )
|
|||
|
||||
# Build the extension module for use in install tree with RPATH pointing to install tree
|
||||
# Call distutils for installation
|
||||
install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} setup.py build_ext --rpath $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${INSTALL_LIB_DIR} COMMAND ${PYTHON_EXECUTABLE} setup.py install --prefix $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})")
|
||||
install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} setup.py build_ext --rpath ${CMAKE_INSTALL_PREFIX}/${INSTALL_LIB_DIR} COMMAND ${PYTHON_EXECUTABLE} setup.py install --prefix $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})")
|
||||
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue