Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,7 @@ if (BUILD_SDF)

################################################
# Find psutil python package for memory tests
if (BUILD_TESTING)
find_python_module(psutil)
if (NOT PY_PSUTIL)
gz_build_warning("Python psutil package not found. Memory leak tests will be skipped")
endif()
endif()
find_python_module(psutil)

########################################
# Find gz math
Expand Down
4 changes: 0 additions & 4 deletions sdf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ add_subdirectory(1.12)
add_custom_target(schema)
add_dependencies(schema schema1_11)

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.
set(EMBEDDED_SDF_CC_PATH "${PROJECT_BINARY_DIR}/src/EmbeddedSdf.cc")
Expand Down
4 changes: 3 additions & 1 deletion test/integration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ set(tests
world_dom.cc
)

if (Python3_Interpreter_FOUND AND PY_PSUTIL)
if (PY_PSUTIL)
set(tests ${tests} element_memory_leak.cc)
else()
message(WARNING "Python psutil package not found. Memory leak tests will be skipped")
endif()

find_program(XMLLINT_EXE xmllint)
Expand Down
Loading