abseil / abseil/abseil-cpp

cmake install installs debug and release builds into same folder with same name

未关闭
#822 2 条评论 0 个 reaction 已指派 1 人 已被 @derekmauro 认领 在 GitHub 查看
bug
主要语言
C++
星标
18.1k
派生
3.2k
平均合并
20 小时 36 分钟
30 天内合并 PR
1

描述

**Describe the bug**
debug build and install overwrites release install or vice versa (which ever is last wins)
VS2017 results in link error LNK2038 (ITERATOR_DEBUG_LEVEL) when linking a debug against release build of abseil or vice versa

Include a clear and concise description of what the problem is, including what
you expected to happen, and what actually happened.

**Steps to reproduce the bug**

cmake .. -G "Visual Studio 15 2017"
Load absl.sln into Visual Studio
Build Debug
Build Install target (verify headers and libs get installed)
Switch to Release
Build Release
Install Release
Everything gets overwritten.

For google protofbuf the debug libarary names have a 'd' appended to them so even though they are installed to same folder they co-exist.

It's important that we are able to reproduce the problem that you are
experiencing. Please provide all code and relevant steps to reproduce the
problem, including your `BUILD`/`CMakeLists.txt` file and build commands. Links
to a GitHub branch or [godbolt.org](https://godbolt.org/) that demonstrate the
problem are also helpful.

**What version of Abseil are you using?**
Live at head as of October 14 2020

**What operating system and version are you using**
Windows 10 1903

If you are using a Linux distribution please include the name and version of the
distribution as well.

**What compiler and version are you using?**
VS2017 15.9.24
Please include the output of `gcc -v` or `clang -v`, or the equivalent for your
compiler.

**What build system are you using?**
CMake
Please include the output of `bazel --version` or `cmake --version`, or the
equivalent for your build system.

**Additional context**

Add any other context about the problem here.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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