Fix python lib path in bundle

This commit is contained in:
Shahram Najm 2016-06-09 16:07:01 +01:00
parent d3342f4083
commit 405c7c384e
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ if( HAVE_PYTHON )
set( _gribapi_swig "_gribapi_swig${CMAKE_SHARED_LIBRARY_SUFFIX}" )
# Build the extension module for use in build tree with RPATH pointing to the build tree
add_custom_command( OUTPUT ${_gribapi_swig}
COMMAND ${PYTHON_EXECUTABLE} setup.py build_ext --inplace -R ${CMAKE_CURRENT_BINARY_DIR}/../lib
COMMAND ${PYTHON_EXECUTABLE} setup.py build_ext --inplace -R ${CMAKE_BINARY_DIR}/lib
DEPENDS grib_interface.h grib_interface.c ${_swig_c_wrapper} setup.py.in eccodes )
# Build the extension module as target for installation with RPATH pointing to the install prefix
add_custom_command( OUTPUT build/${_gribapi_swig}