mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-25 10:18:34 -06:00
cmCTestRunTest: Simplify by using GetSystemPathlistSeparator
Part of the implementation of `ENVIRONMENT_MODIFICATION` replicated the logic in this function. Using it here de-duplicates code and will be useful during the upcoming refactoring.
This commit is contained in:
@@ -803,11 +803,7 @@ bool cmCTestRunTest::ForkProcess(
|
||||
if (environment_modification && !environment_modification->empty()) {
|
||||
std::map<std::string, cm::optional<std::string>> env_application;
|
||||
|
||||
#ifdef _WIN32
|
||||
char path_sep = ';';
|
||||
#else
|
||||
char path_sep = ':';
|
||||
#endif
|
||||
char path_sep = cmSystemTools::GetSystemPathlistSeparator();
|
||||
|
||||
auto apply_diff =
|
||||
[&env_application](const std::string& name,
|
||||
|
||||
Reference in New Issue
Block a user