Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make library check for python optional #71

Merged
merged 1 commit into from
Aug 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ endif()

option(PYTHON_BINDINGS "Install Python bindings" OFF)
option(MATLAB_BINDINGS "Install MATLAB bindings" OFF)
option(LIB_CHECK_PYINSTALL "Check for library during python install" OFF)

add_subdirectory(bindings)

Expand Down
8 changes: 4 additions & 4 deletions bindings/python/setup.py.cmakein
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ class InstallWrapper(install):
install.run(self)

def _check_libad9361_installed(self):
cross_compiling = ("${CMAKE_CROSSCOMPILING}" == "TRUE")
if cross_compiling:
# When cross-compiling, we generally cannot dlopen
# the libad9361 shared lib from the build platform.
lib_check = ("${LIB_CHECK_PYINSTALL}" == "OFF")
if lib_check:
# When cross-compiling or installing from git, we generally cannot
# dlopen the libad9361 shared lib from the build platform.
# Simply skip this check in that case.
return

Expand Down