Commit 9a88287
committed
Replace strings in generator expressions by lists
The function target_compile_options in combination with
generator expressions does not handle strings with space
separated compiler flags and inserts quotes.
Also MPI_<lang>_COMPILE_FLAGS is deprecated since cmake 3.10
and should be replaced by MPI_<lang>_COMPILE_OPRIONS and
MPI_<lang>_COMPILE_DEFINITIONS.
Those variables are already lists of compiler flags and thus well
suited to solve the bug.
This fixes the build error described in issue #676 when using MPICH,
which is the same error as described in issue #704.
Signed-off-by: Elias Lettl <elias.lettl@physik.uni-augsburg.de>1 parent 964360c commit 9a88287
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
56 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
57 | 61 | | |
58 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
| |||
0 commit comments