You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: test: configuring unit tests with ENABLE_VLC=OFF fails (vlc-video is not a library) #253
cmake/common/helpers_common.cmake:460: add_core_module() creates a dummy custom target with the module's name when the module is disabled, so TARGET vlc-video is also true with ENABLE_VLC=OFF.
Class
Build break: configuring with unit tests on and the VLC plugin off fails.
How it is reached
Configure with -DENABLE_UNIT_TESTS=ON -DENABLE_VLC=OFF (for example on a machine without libVLC headers). The generate step fails:
CMake Error at test/cmocka/tests.d/test_vlc_channel_order.cmake:7 (target_compile_definitions):
Error evaluating generator expression:
$<TARGET_FILE:vlc-video>
Target "vlc-video" is not an executable or library.
Proposed fix
Register the test only when vlc-video is a MODULE_LIBRARY. Checked: with the fix, an ENABLE_VLC=OFF build configures and builds in both lanes (C and ENABLE_RUST_LIBOBS=ON), and with ENABLE_VLC=ON the test is still registered and passes.
Activity
rdoupe commentedon Oct 11, 2026
Claiming: this issue (regression from my #252).
Fix: register
test_vlc_channel_orderonly whenvlc-videois a real module library. PR right away.test: Register the VLC channel order test only for a real vlc-video m…