From 2234d55c7f6c9309d12c3a2a948a1b7f0e94b81a Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 29 Jan 2013 07:22:31 +1100 Subject: [PATCH] Fix test to correctly use cmake feature to find python executable MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit On my system, at least, there was no ${python} variable set, so the tests for PIL were incorrectly failing, (such that many tests were not being run at all). Signed-off-by: José Fonseca --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2dff857..d9398c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,7 @@ if (NOT EXISTS ${APITRACE_EXECUTABLE}) message (WARNING "Please specify path to apitrace executable via APITRACE_EXECUTABLE") endif () +include (FindPythonInterp) include (FindPkgConfig) set (CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) @@ -50,7 +51,7 @@ endif () # Check for the presence of several python packages, which are needed to build # generated tests. execute_process( - COMMAND ${python} -c "import PIL" + COMMAND ${PYTHON_EXECUTABLE} -c "import PIL" OUTPUT_QUIET ERROR_QUIET RESULT_VARIABLE IMPORT_PIL_RESULT) -- 2.43.0