diff options
author | Brent Stapleton <brent.stapleton@ettus.com> | 2019-03-06 09:55:55 -0800 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-03-06 16:01:10 -0800 |
commit | f258d72e2558e471c6345b286cf12dfd0d7a206a (patch) | |
tree | 7ee8288db1b1744f57f242d1ca8a4e6f88faa089 /host/python | |
parent | 6cdac61c6fbe196cf1c99ab24f96ea8bcc2c563d (diff) | |
download | uhd-f258d72e2558e471c6345b286cf12dfd0d7a206a.tar.gz uhd-f258d72e2558e471c6345b286cf12dfd0d7a206a.tar.bz2 uhd-f258d72e2558e471c6345b286cf12dfd0d7a206a.zip |
python: change CMake variable for library ext
Changing the CMake variable used in determining the extension of the
Python API library for better cross-platform support.
Specifically, `CMAKE_SHARED_MODULE_SUFFIX` corresponds to .so for *nix
and MacOS, which is the extension Python expects.
Diffstat (limited to 'host/python')
-rw-r--r-- | host/python/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/python/CMakeLists.txt b/host/python/CMakeLists.txt index 12325beb3..7c06c0923 100644 --- a/host/python/CMakeLists.txt +++ b/host/python/CMakeLists.txt @@ -42,7 +42,7 @@ target_link_libraries(pyuhd ${Boost_LIBRARIES} ${PYTHON_LIBRARY} uhd) if(WIN32) set(PYUHD_LIBRARY_NAME libpyuhd.pyd) else() - set(PYUHD_LIBRARY_NAME libpyuhd${CMAKE_SHARED_LIBRARY_SUFFIX}) + set(PYUHD_LIBRARY_NAME libpyuhd${CMAKE_SHARED_MODULE_SUFFIX}) endif(WIN32) add_custom_command(TARGET pyuhd |