abseil / abseil/abseil-cpp

The value of CMAKE_CXX_STANDARD should be encoded in installed file names to allow packaging for users requiring different -std=c++NN

未關閉
#820 0 則留言 0 個 reaction 已指派 1 人 已被 @derekmauro 認領 在 GitHub 檢視
bug
主要語言
C++
星號
18.1k
分支
3.2k
平均合併
20 小時 36 分鐘
30 天內合併 PR
1

描述

Since different depending projects require different -std=c++NN settings in abseil, it should be possible to have abseil simultaneously installed with different -std=c++NN settings.

Google's or-tools require ```-std=c++17```, while others require ```-std=c++11``` and fail to build otherwise.

Please change the installed file paths to reflect ```-std=c++NN``` set through ```CMAKE_CXX_STANDARD```.
For example, ```include/absl/``` could become ```include/absl-c++NN/```, and ```lib/libabsl_XX.so``` could become ```lib/libabsl-c++NN_XX.so```.

Original bug: https://github.com/abseil/abseil-cpp/issues/819#issuecomment-709529075

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。