From bbe6714da64b1890f37c21b642d0cd4507928785 Mon Sep 17 00:00:00 2001 From: Bi0T1N Date: Sat, 17 Dec 2022 18:01:08 +0100 Subject: [PATCH] Make Python a build dependency Signed-off-by: Bi0T1N --- sdf/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdf/CMakeLists.txt b/sdf/CMakeLists.txt index b3ab2a484..4691138ec 100644 --- a/sdf/CMakeLists.txt +++ b/sdf/CMakeLists.txt @@ -12,6 +12,10 @@ add_subdirectory(1.10) add_custom_target(schema) add_dependencies(schema schema1_10) +if (NOT Python3_Interpreter_FOUND) + gz_build_error("Python is required to generate the C++ file with the SDF content") +endif() + # Generate the EmbeddedSdf.cc file, which contains all the supported SDF # descriptions in a map of strings. The parser.cc file uses EmbeddedSdf.hh. execute_process(