intel / intel/cpp-std-extensions

CPM usage conflicts if Boost is already included

未关闭
#353 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C++
星标
127
派生
18
平均合并
11 小时 45 分钟
30 天内合并 PR
13

描述

If Boost has been added via CPM via something like:

```
add_versioned_package(
NAME Boost
VERSION 1.88.0
GITHUB_REPOSITORY "boostorg/boost"
GIT_TAG "boost-1.88.0"
)
```

then there is an error:

```
CMake Error at /path/to/cpm_cache/mp11/bf7aae5c18316ffffb3d7e62dc3f8423b7c968b1/CMakeLists.txt:9 (add_library):
add_library cannot create target "boost_mp11" because another target with
the same name already exists. The existing target is an interface library
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。