Files
ConanPackages/flatbuffers/all/patches/0004-no-flatc-execution-build-time.patch
2026-01-23 22:15:36 +01:00

21 lines
729 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 21e90151..2ce3eb48 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -536,6 +536,7 @@ function(compile_flatbuffers_schema_to_embedded_binary SRC_FBS OPT)
register_generated_output(${GEN_BFBS_HEADER})
endfunction()
+if(0)
# Look if we have python 3.5 installed so that we can run the generate code
# python script after flatc is built.
find_package(Python3 3.5 COMPONENTS Interpreter)
@@ -559,6 +560,7 @@ if(Python3_Interpreter_FOUND)
else()
message("No Python3 interpreter found! Unable to generate files automatically.")
endif()
+endif()
if(FLATBUFFERS_BUILD_TESTS)
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/tests" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")