Skip to content

[BUG]: vsomeip/tests cannot build when ENABLE_MULTIPLE_ROUTING_MANAGERS is enabled #1038

@kheaactua

Description

@kheaactua

vSomeip Version

c70ced4

Boost Version

1.82

Environment

gcc

Describe the bug

If ENABLE_MULTIPLE_ROUTING_MANAGERS is enabled, vsomeip won't configure due to the following.

CMake Error at test/CMakeLists.txt:64 (add_library):
  Error evaluating generator expression:

    $<TARGET_OBJECTS:vsomeip3-cfg-internal>

  Objects of target "vsomeip3-cfg-internal" referenced but no such target
  exists.


CMake Error at test/CMakeLists.txt:64 (add_library):
  Error evaluating generator expression:

    $<TARGET_OBJECTS:vsomeip3-cfg-internal>

  Objects of target "vsomeip3-cfg-internal" referenced but no such target
  exists.


CMake Error at test/CMakeLists.txt:64 (add_library):
  Error evaluating generator expression:

    $<TARGET_OBJECTS:vsomeip3-cfg-internal>

  Objects of target "vsomeip3-cfg-internal" referenced but no such target
  exists.


CMake Error at test/CMakeLists.txt:64 (add_library):
  No SOURCES given to target: vsomeip3-cfg-test

I understand that no one else seems to use ENABLE_MULTIPLE_ROUTING_MANAGERS and it must be disabled to build the tests, but this happens right out of the box.

Reproduction Steps

Configure with:

cmake -DENABLE_MULTIPLE_ROUTING_MANAGERS="ON" -DGTEST_ROOT="${HOME}.conan2/p/gtestd6582aeef6243/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="RelWithDebInfo" vsomeip-source

(with your own gtest directory of course)

Expected behaviour

Successful configuration

Logs and Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions