Skip to content

bug: test: configuring unit tests with ENABLE_VLC=OFF fails (vlc-video is not a library) #253

Closed

Description

@rdoupe

Regression from #252 (our VLC channel order fix).

Location

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

  1. rdoupe commented on Oct 11, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: this issue (regression from my #252).
    Fix: register test_vlc_channel_order only when vlc-video is a real module library. PR right away.

  2. added a commit that references this issue on Oct 11, 2026
    8f2dbd9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions