[FR] CMake: add prefix "SRT" to all srt cmake options
envgap__Haivision__srt-2914
01 / FAILURE SIGNATURE
As reported upstream
No identifying execution failure has been captured.
Not a benchmark task.
- In a clean container the reported failure did not reproduce, or the known fix did not make the project run.
02 / ENVIRONMENT RECIPE
- Base commit
547688cce7db6949dd8236507331cbe2a14cd06b- Manifest
CMakeLists.txt- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
Haivision/srt #2914 · read the original issue
There is an inconvenience with configuration srt lib build in a case when srt was added to CMake project as subdirectory. SRT options doesn't have an unique name. So during configuration in root CMake file there is a chance that this name is already used by another project in your build(for example ENABLE_APPS). It would be to add prefix "SRT" to all srt cmake options. For example: SRT_ENABLE_APPS. As an example this is how it is done in spdlog: https://github.com/gabime/spdlog/blob/v1.x/CMakeLists.txt#L59
04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]