Skip to content

Commit 1ef112a

Browse files
bmarques1995facebook-github-bot
authored andcommitted
Added conditional verification to python executable. (#500)
Summary: Added conditional verification to python executable to search for python instead of python3 on Windows. This code without this modification is searching for python as python3.exe in Windows, but in the OS, python is installed as python.exe, what cause an incorrect python not found. Issue: #499 Pull Request resolved: #500 Reviewed By: kvtsoy Differential Revision: D62987053 Pulled By: afrind fbshipit-source-id: fb21d711483b350d0b86b481cf876c95b82334e0
1 parent 3762e08 commit 1ef112a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,12 @@ set(PROXYGEN_GENERATED_ROOT ${CMAKE_CURRENT_BINARY_DIR}/generated)
5252
file(MAKE_DIRECTORY ${PROXYGEN_GENERATED_ROOT})
5353

5454
# Build-time program requirements.
55-
find_program(PROXYGEN_PYTHON python3)
55+
if(WIN32)
56+
find_program(PROXYGEN_PYTHON python)
57+
else()
58+
find_program(PROXYGEN_PYTHON python3)
59+
endif()
60+
5661
if(NOT PROXYGEN_PYTHON)
5762
message(FATAL_ERROR "python is required for the proxygen build")
5863
endif()

0 commit comments

Comments
 (0)