Commit a802b4b
committed
[CMake] Never add current binary dir to command in
If a test added with `ROOT_ADD_TEST` uses a command that can't be found
on the system and that is not an absolute path, the `ROOT_ADD_TEST`
macro will implicitly prefix `$CMAKE_CURRENT_BINARY_DIR/`, assimum that
the executable is supposed to be found in the current binary dir.
However, that is not always a reasonable fallback, and can be even
wrong if the executable was supposed to be found in the `PATH` that is
set in the `ENVIRONMENT` for that test.
So I think it's better to remove that fallback, requiring the tests to
be explicit about which executable should be called.ROOT_ADD_TEST
1 parent 136e065 commit a802b4b
1 file changed
+0
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1542 | 1542 | | |
1543 | 1543 | | |
1544 | 1544 | | |
1545 | | - | |
1546 | | - | |
1547 | | - | |
1548 | 1545 | | |
1549 | 1546 | | |
1550 | 1547 | | |
| |||
0 commit comments