From c594de2737a92860b91165a085f0e374745b245a Mon Sep 17 00:00:00 2001 From: a-maurice Date: Wed, 23 Nov 2022 16:11:26 -0800 Subject: [PATCH] Use find_program to get python --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index aaf6b9d3b0..82a1b8c948 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,8 +86,11 @@ option(FIREBASE_GITHUB_ACTION_BUILD option(FIREBASE_QUICK_TEST "Enable quick tests will skip tests which requires access to the SECRET" OFF) -set(FIREBASE_PYTHON_EXECUTABLE "python" CACHE FILEPATH - "The Python interpreter to use, such as one from a venv") +find_program(FIREBASE_PYTHON_EXECUTABLE + NAMES python3 python + DOC "The Python interpreter to use, such as one from a venv" + REQUIRED +) set(FIREBASE_XCODE_TARGET_FORMAT "frameworks" CACHE STRING "Format to output, 'frameworks' or 'libraries'")