diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1a7ceaaa..b4a489f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -526,16 +526,16 @@ function(compile_flatbuffers_schema_to_embedded_binary SRC_FBS OPT) register_generated_output(${GEN_BFBS_HEADER}) endfunction() -# Look if we have python 3 installed so that we can run the generate code python -# script after flatc is built. -find_package(PythonInterp 3) +# Look if we have python 3.5 installed so that we can run the generate code +# python script after flatc is built. +find_package(PythonInterp 3.5) if(PYTHONINTERP_FOUND AND # Skip doing this if the MSVC version is below VS 12. # https://cmake.org/cmake/help/latest/variable/MSVC_VERSION.html (NOT MSVC OR MSVC_VERSION GREATER 1800)) if(MSVC) - set(GENERATION_SCRIPT py scripts/generate_code.py) + set(GENERATION_SCRIPT ${PYTHON_EXECUTABLE} scripts/generate_code.py) else() set(GENERATION_SCRIPT scripts/generate_code.py) endif() |