Skip to content
Snippets Groups Projects
Commit d0a3b9f1 authored by Tom Finegan's avatar Tom Finegan
Browse files

cmake: Halt generation when python not present and tests enabled.

BUG=aomedia:1243

Change-Id: Iaa3b239cf78d62432f61ad166e9c242519f6530f
parent 1a091bc1
No related branches found
No related tags found
No related merge requests found
......@@ -328,8 +328,10 @@ endif ()
if (CONFIG_UNIT_TESTS)
find_package(PythonInterp)
if (NOT PYTHONINTERP_FOUND)
message(WARNING "--- Unit tests disabled: Python not found.")
set(CONFIG_UNIT_TESTS 0)
message(FATAL_ERROR
"--- Unit tests require Python, rerun cmake with "
"-DCONFIG_UNIT_TESTS=0 to avoid this error, or install Python and "
"make sure it's in your PATH.")
endif ()
if (MSVC)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment