Skip to content

Commit

Permalink
check proper creation of EmbeddedSdf.cc
Browse files Browse the repository at this point in the history
Closes: #1535

Signed-off-by: efferre79 <[email protected]>
  • Loading branch information
efferre79 authored Feb 4, 2025
1 parent 2b583cb commit c0360af
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 c0360af

Please sign in to comment.