Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: populate env vars using "env"
environmental variables cannot be populated to the tests if they are performed as target using `cmake --build ... --target <target>`. where the '<target>' is defined using `add_custom_target()`. in order to populate the environmental variables down to the the COMMAND specified by `add_custom_target()`, we need to launch the test using `env`. in this change, `cmake -E env` is used to launch the test command using a more CMake native way without explicitly relying on yet another external tool -- "env". without this change, `Seastar_TEST_ENVIRONMENT` won't take effect when running the tests. Signed-off-by: Kefu Chai <[email protected]>
- Loading branch information