Skip to content

[FEATURE]: Prevent curl dependency from causing hundreds of test targets to appear #253

@sketch34

Description

@sketch34

Describe the goal of the feature

Prevent the vscode "Select launch target" dropdown from being populated with hundreds of curl-build test targets.

Image

Is your feature request related to a problem?

After adding dd-trace-cpp many curl-build test targets are present in the vscode "Select launch target" drop-down.

Describe alternatives you've considered

I did a brief search through this repo and in the curl-build cmake files for a solution. I don't think DD_TRACE_BUILD_TESTING is related to this problem.

Additional context

My cmake project is consuming dd-trace-cpp via FetchContent().

if (PX_DD_APM)
  FetchContent_Declare(
    dd-trace-cpp
    GIT_REPOSITORY https://github.com/DataDog/dd-trace-cpp
    GIT_TAG        v2.0.0
    GIT_SHALLOW    ON
    GIT_PROGRESS   OFF
  )

  FetchContent_MakeAvailable(dd-trace-cpp)
endif() # PX_DD_APM

...

set(PX_LINK_LIBS ... $<$<BOOL:${PX_DD_APM}>:dd-trace-cpp::static> ...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions