As commented by @alext-mkrs - When cmake runs through these lines, the make naturally hasn't run yet, so there are no such files, so it doesn't set the PYTHON_DEFAULT_INTERP variable and that causes it not to add tests to the list later on Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>