[DiscordArchive] Hard to support something that can't be fixed ?
[DiscordArchive] Hard to support something that can't be fixed ?
Archived author: Kitzunu • Posted: 2022-11-05T15:51:12.514000+00:00
Original source
Hard to support something that can't be fixed ?
Archived author: Kitzunu • Posted: 2022-11-05T15:51:57.295000+00:00
Original source
As I said, feel free to fix it if you know how. But afaik there is no way in C++ to check which distribution of Linux someone is using. So I am afraid the issue is on Debian, not AC
Archived author: Foe • Posted: 2022-11-05T15:53:52.163000+00:00
Original source
You'd get the underlying distribution through CMAKE then populate a variable that you can use in the source
Archived author: Foe • Posted: 2022-11-05T15:54:35.880000+00:00
Original source
The following snippet populates the LSB_RELEASE_ID_SHORT cmake variable with information about the underlying Linux system:
```find_program(LSB_RELEASE_EXEC lsb_release)
execute_process(COMMAND ${LSB_RELEASE_EXEC} -is
OUTPUT_VARIABLE LSB_RELEASE_ID_SHORT
OUTPUT_STRIP_TRAILING_WHITESPACE
)```
On Ubuntu, for example, it yields ```Ubuntu```
Archived author: Kitzunu • Posted: 2022-11-05T15:56:23.865000+00:00
Original source
Would you mind implementing something like that and making a check for it in
```cpp
#if defined(__GNUC__) && (!defined(__clang__) || (__clang_major__ == 10))
```