Commit 25f4b5b
Fix defines created by CMake configure_file
Recent versions of CMake must have changed how variables created from
`option` commands were substituted in the `configure_file` command.
Previously, they substituted to `ON` or `OFF`, but now they substitute
for `TRUE` or `FALSE`. This causes a problem with how MGARDXConfig.h
matched strings to set the `MGARD_ENABLE_X` macros.
This change replaces string substitution with `#cmakedefine01`, which
will simply replace the statement with a `#define` setting the variable
to either 0 or 1, which is the desired outcome.1 parent 024ccc2 commit 25f4b5b
2 files changed
+10
-40
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 11 | + | |
16 | 12 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 13 | + | |
22 | 14 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 15 | + | |
28 | 16 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 17 | + | |
34 | 18 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 19 | + | |
40 | 20 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 21 | + | |
46 | 22 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 23 | + | |
52 | 24 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 25 | + | |
58 | 26 | | |
59 | 27 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
0 commit comments