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 <jfonseca@vmware.com>
message (WARNING "Please specify path to apitrace executable via APITRACE_EXECUTABLE")
endif ()
message (WARNING "Please specify path to apitrace executable via APITRACE_EXECUTABLE")
endif ()
+include (FindPythonInterp)
include (FindPkgConfig)
set (CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
include (FindPkgConfig)
set (CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
# Check for the presence of several python packages, which are needed to build
# generated tests.
execute_process(
# 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)
OUTPUT_QUIET
ERROR_QUIET
RESULT_VARIABLE IMPORT_PIL_RESULT)