-
Bug
-
Resolution: Fixed
-
P2: Important
-
Qt Creator 17.0.1
-
None
-
bash-minimal@5.2.37 clang@13.0.1 clazy@1.12 coreutils-minimal@9.1 d-demangler@0.0.2 elfutils@0.192
+ gdb@14.2 googletest@1.12.1 kcachegrind@24.12.1 libxkbcommon@1.6.0 llvm@13.0.1 pkg-config@0.29.2 python@3.11.11
+ qt5compat@6.8.2 qtdeclarative@6.8.2 qtshadertools@6.8.2 qtsvg@6.8.2 qttools@6.8.2 qttranslations@6.8.2
+ rust-rustc-demangle-capi@0.1.0 valgrind@3.22.0 vulkan-headers@1.4.309.0 vulkan-loader@1.4.309.0 xvfb-run@21.1.7-1
+ yaml-cpp@0.8.0 zstd@1.5.6bash-minimal@5.2.37 clang@13.0.1 clazy@1.12 coreutils-minimal@9.1 d-demangler@0.0.2 elfutils@0.192 + gdb@14.2 googletest@1.12.1 kcachegrind@24.12.1 libxkbcommon@1.6.0 llvm@13.0.1 pkg-config@0.29.2 python@3.11.11 + qt5compat@6.8.2 qtdeclarative@6.8.2 qtshadertools@6.8.2 qtsvg@6.8.2 qttools@6.8.2 qttranslations@6.8.2 + rust-rustc-demangle-capi@0.1.0 valgrind@3.22.0 vulkan-headers@1.4.309.0 vulkan-loader@1.4.309.0 xvfb-run@21.1.7-1 + yaml-cpp@0.8.0 zstd@1.5.6
-
-
9c31d4544 (17.0), 21f5c81d5 (18.0)
Hello,
Attempting to update the `qt-creator` package in Guix from version 15 to 17.0.1, I got this configuration failure:
```
CMake Error at cmake/Findyaml-cpp.cmake:21 (add_library):
add_library cannot create ALIAS target "yaml-cpp" because another target
with the same name already exists.
Call Stack (most recent call first):
src/plugins/clangtools/CMakeLists.txt:1 (find_package)
```
The error goes away if I remove the `yaml-cpp` input (system library). This seems to be caused because yaml-cpp's CMake config files already define the `yaml-cpp` target (at least using the latest commit of yaml-cpp, which is currently 2f86d13775d119edbb69af52e5f566fd65c6953b, see e.g. https://github.com/jbeder/yaml-cpp/blob/2f86d13775d119edbb69af52e5f566fd65c6953b/yaml-cpp-config.cmake.in#L23).
As a workaround, I removed the line `add_library(yaml-cpp ALIAS yaml-cpp::yaml-cpp)` in the `Findyaml-cpp.cmake` file.