Commit b4e7e63
authored
Fix C++ standard detection macros to check for defined value (#268)
This PR updates the C++ standard detection macros to first check if CMAKE_CXX_STANDARD is defined before comparing its value. This prevents build errors when CMAKE_CXX_STANDARD is undefined.
I found that the current macro causes build failures on some setups, especially when the variable is not set, resulting in errors like 'CMAKE_CXX_STANDARD not defined'.
I haven’t tested the full build due to unrelated build errors on master, but this is a low-risk fix that corrects the macro guard logic.1 parent bc9131e commit b4e7e63
File tree
3 files changed
+6
-6
lines changed- include/internal
- single_include_test
- single_include
3 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4695 | 4695 | | |
4696 | 4696 | | |
4697 | 4697 | | |
4698 | | - | |
| 4698 | + | |
4699 | 4699 | | |
4700 | 4700 | | |
4701 | 4701 | | |
4702 | | - | |
| 4702 | + | |
4703 | 4703 | | |
4704 | 4704 | | |
4705 | 4705 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4695 | 4695 | | |
4696 | 4696 | | |
4697 | 4697 | | |
4698 | | - | |
| 4698 | + | |
4699 | 4699 | | |
4700 | 4700 | | |
4701 | 4701 | | |
4702 | | - | |
| 4702 | + | |
4703 | 4703 | | |
4704 | 4704 | | |
4705 | 4705 | | |
| |||
0 commit comments