diff options
author | Craig Scott <craig.scott@crascit.com> | 2020-05-10 08:04:17 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2020-05-10 22:15:25 (GMT) |
commit | faf44a8cdb122065b2d36ac415561df679a94872 (patch) | |
tree | c6a424305948fb9c2c0b887e69395a278087da9b /Source/cmMakefile.cxx | |
parent | 8afac758e6e793a0f004ce2693b0096362391cd9 (diff) | |
download | CMake-faf44a8cdb122065b2d36ac415561df679a94872.zip CMake-faf44a8cdb122065b2d36ac415561df679a94872.tar.gz CMake-faf44a8cdb122065b2d36ac415561df679a94872.tar.bz2 |
source_group: Support forward slashes in group hierarchy
Fixes: #18076
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 58883b5..6f05d45 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -2404,11 +2404,11 @@ cmSourceGroup* cmMakefile::GetOrCreateSourceGroup( cmSourceGroup* cmMakefile::GetOrCreateSourceGroup(const std::string& name) { - const char* delimiter = this->GetDefinition("SOURCE_GROUP_DELIMITER"); - if (delimiter == nullptr) { - delimiter = "\\"; + const char* delimiters = this->GetDefinition("SOURCE_GROUP_DELIMITER"); + if (delimiters == nullptr) { + delimiters = "/\\"; } - return this->GetOrCreateSourceGroup(cmTokenize(name, delimiter)); + return this->GetOrCreateSourceGroup(cmTokenize(name, delimiters)); } /** |