Commit c1deffe
committed
enable testing only when CMAKE_BUILD_TESTS=ON
The function enable_testing was globally enabled, no matter the value
of the CMAKE_BUILD_TESTS option. This patch guards this call, so it
only gets called, when CMAKE_BUILD_TESTS=ON.
Signed-off-by: Bernd Waibel <[email protected]>1 parent 9e63393 commit c1deffe
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | | - | |
| 39 | + | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
45 | | - | |
| 44 | + | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
0 commit comments