This is an automated email from the ASF dual-hosted git repository. astitcher pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
The following commit(s) were added to refs/heads/master by this push: new 41378d8 PROTON-2087: Fix the logic for detecting python modules 41378d8 is described below commit 41378d808d82a44400cf8c14e83105647a9807d6 Author: Andrew Stitcher <astitc...@apache.org> AuthorDate: Mon Aug 12 12:54:31 2019 -0400 PROTON-2087: Fix the logic for detecting python modules --- tools/cmake/Modules/CheckPythonModule.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cmake/Modules/CheckPythonModule.cmake b/tools/cmake/Modules/CheckPythonModule.cmake index 9e94ec3..bd171a7 100644 --- a/tools/cmake/Modules/CheckPythonModule.cmake +++ b/tools/cmake/Modules/CheckPythonModule.cmake @@ -37,7 +37,7 @@ # macro, usually by using find_package(PythonInterp). macro (CHECK_PYTHON_MODULE MODULE VARIABLE) - if (NOT DEFINED "${VARIABLE}" AND DEFINED "PYTHON_EXECUTABLE") + if (NOT ${VARIABLE} AND PYTHON_EXECUTABLE) execute_process( COMMAND ${PYTHON_EXECUTABLE} -c "import sys, pkgutil; sys.exit(0 if pkgutil.find_loader('${MODULE}') else 1)" RESULT_VARIABLE RESULT) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org