Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Hard to support something that can't be fixed ?

[DiscordArchive] Hard to support something that can't be fixed ?

[DiscordArchive] Hard to support something that can't be fixed ?

rektbyfaith
Administrator
0
11-05-2022, 03:51 PM
#1
Archived author: Kitzunu • Posted: 2022-11-05T15:51:12.514000+00:00
Original source

Hard to support something that can't be fixed ?
rektbyfaith
11-05-2022, 03:51 PM #1

Archived author: Kitzunu • Posted: 2022-11-05T15:51:12.514000+00:00
Original source

Hard to support something that can't be fixed ?

rektbyfaith
Administrator
0
11-05-2022, 03:51 PM
#2
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
rektbyfaith
11-05-2022, 03:51 PM #2

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

rektbyfaith
Administrator
0
11-05-2022, 03:53 PM
#3
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
rektbyfaith
11-05-2022, 03:53 PM #3

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

rektbyfaith
Administrator
0
11-05-2022, 03:54 PM
#4
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```
rektbyfaith
11-05-2022, 03:54 PM #4

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```

rektbyfaith
Administrator
0
11-05-2022, 03:56 PM
#5
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))
```
rektbyfaith
11-05-2022, 03:56 PM #5

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))
```

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)