Skip to content

Commit

Permalink
Check proper creation of EmbeddedSdf.cc (#1536)
Browse files Browse the repository at this point in the history
Closes #1535.

Signed-off-by: efferre79 <rossi.f@inwind.it>
Co-authored-by: Steve Peters <scpeters@openrobotics.org>
  • Loading branch information
efferre79 and scpeters authored Mar 3, 2025
1 parent 71fe504 commit 9b37cf7
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 @@ -25,6 +25,10 @@ execute_process(
--output-file "${PROJECT_BINARY_DIR}/src/EmbeddedSdf.cc"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/sdf"
)
file(SIZE "${PROJECT_BINARY_DIR}/src/EmbeddedSdf.cc" OUT_SIZE)
if(${OUT_SIZE} EQUAL 0)
message(FATAL_ERROR "Problems executing ${Python3_EXECUTABLE} ${CMAKE_SOURCE_DIR}/sdf/embedSdf.py")
endif()

# Generate aggregated SDF description files for use by the sdformat.org
# website. If the description files change, the generated full*.sdf files need
Expand Down

0 comments on commit 9b37cf7

Please # to comment.