aboutsummaryrefslogtreecommitdiffstats
path: root/host/python/CMakeLists.txt
diff options
context:
space:
mode:
authorMarcus Müllr <marcus.mueller@ettus.com>2018-07-27 14:47:31 +0000
committerBrent Stapleton <bstapleton@g.hmc.edu>2018-08-03 16:26:33 -0700
commit89eac133eab2e4bcd5f67544fe0ca888f5e7df9e (patch)
treed55c3d166bfe1b3b92d0bdd226335242fbd16ac8 /host/python/CMakeLists.txt
parent65bd6aebeb9a0e26e02b1f7141abd9dec570e462 (diff)
downloaduhd-89eac133eab2e4bcd5f67544fe0ca888f5e7df9e.tar.gz
uhd-89eac133eab2e4bcd5f67544fe0ca888f5e7df9e.tar.bz2
uhd-89eac133eab2e4bcd5f67544fe0ca888f5e7df9e.zip
python: Fixing Boost.Python initializer visibility
With Boost 1.64 to 1.65 (which, of course, Ubuntu LTS ships), the `PyInit_Libraryname` are invisible when one sets the default visibility to "hidden" (which is reasonable, and which we do).
Diffstat (limited to 'host/python/CMakeLists.txt')
-rw-r--r--host/python/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/python/CMakeLists.txt b/host/python/CMakeLists.txt
index c3099348a..32a32592e 100644
--- a/host/python/CMakeLists.txt
+++ b/host/python/CMakeLists.txt
@@ -54,14 +54,14 @@ CONFIGURE_FILE(${SETUP_PY_IN} ${SETUP_PY})
ADD_CUSTOM_COMMAND(OUTPUT ${TIMESTAMP_FILE}
COMMAND ${CMAKE_COMMAND} -E copy ${PYUHD_FILES} ${CMAKE_CURRENT_BINARY_DIR}/uhd
- COMMAND ${PYTHON} ${SETUP_PY} -q build
+ COMMAND ${PYTHON_EXECUTABLE} ${SETUP_PY} -q build
COMMAND ${CMAKE_COMMAND} -E touch ${TIMESTAMP_FILE}
DEPENDS ${PYUHD_FILES})
ADD_CUSTOM_TARGET(pyuhd_library ALL DEPENDS ${TIMESTAMP_FILE} pyuhd)
IF(HAVE_PYTHON_VIRTUALENV)
# In virtualenvs, let setuptools do its thing
- INSTALL(CODE "execute_process(COMMAND ${PYTHON} ${SETUP_PY} -q install --force)")
+ INSTALL(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} ${SETUP_PY} -q install --force)")
ELSE()
# Otherwise, use distutils to determine the correct relative path for Python
# packages, and install to our prefix