Skip to content
Snippets Groups Projects
user avatar
AlQuemist authored
The correct platform-independent CMake command to set environmental variables is
```
add_test(NAME <test-name> COMMAND ${CMAKE_COMMAND} -E env ...)
```

Otherwise, CMake assumes the existence of an executable like `env` (or `env.exe`
under Windows). Under Windows, this will lead to an error when such tests are
executed via `ctest`.
9bcbc483
History
Name Last commit Last update
..