build: check if visualizer is in the enabled modules list

This commit is contained in:
Gabriel Ferreira
2022-01-28 14:20:44 -03:00
parent 6564afda68
commit bbe67f5fc2
4 changed files with 13 additions and 6 deletions

View File

@@ -440,7 +440,7 @@ function(build_lib)
# Make sure all bindings are built before building the visualizer module
# that makes use of them
if(${ENABLE_VISUALIZER})
if(${ENABLE_VISUALIZER} AND (visualizer IN_LIST libs_to_build))
if(NOT (${BLIB_LIBNAME} STREQUAL visualizer))
add_dependencies(${libvisualizer} ${bindings-name})
endif()