Commit 24f47c0
committed
cmake: Attempt to find python interpreter only if BUILD_TESTING is ON
This commit also improves the message reported at configuration time:
```
[...]
-- Build tests: ON
-- Looking for Python >= 2.7 needed for summary tests
-- Looking for Python >= 2.7 needed for summary tests - found (2.7.10)
[...]
```
or
```
[...]
-- Build tests: ON
-- Looking for Python >= 2.7 needed for summary tests
-- Looking for Python >= 2.7 needed for summary tests - not found (skipping summary tests)
[...]
```1 parent 15882de commit 24f47c0
1 file changed
+13
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | 113 | | |
| 114 | + | |
123 | 115 | | |
124 | 116 | | |
125 | 117 | | |
| |||
139 | 131 | | |
140 | 132 | | |
141 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
142 | 146 | | |
143 | 147 | | |
144 | 148 | | |
| |||
0 commit comments