Skip to content

Commit

Permalink
Make Python a build dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Bi0T1N <Bi0T1N@users.noreply.github.com>
  • Loading branch information
Bi0T1N committed Dec 17, 2022
1 parent faf92e4 commit bbe6714
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sdf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit bbe6714

Please sign in to comment.