summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-02-15 11:47:46 (GMT)
committerBrad King <brad.king@kitware.com>2019-02-15 11:47:59 (GMT)
commit113a395ee77914d7c0c9888b87301033332bdde6 (patch)
treed22396ed27a9b8044c8118a7a02ad363dc1ca71d /Source
parentdac6cf1b99f6f8a7648b19de52a1d5ffcd2a0299 (diff)
parentcde2596a19861e52d6ef0f98dcc0b70ba572573e (diff)
downloadCMake-113a395ee77914d7c0c9888b87301033332bdde6.zip
CMake-113a395ee77914d7c0c9888b87301033332bdde6.tar.gz
CMake-113a395ee77914d7c0c9888b87301033332bdde6.tar.bz2
Merge branch 'try_compile-expand-compile-defs' into release-3.14
Merge-request: !2965
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCoreTryCompile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx
index bd110ec..eb52895 100644
--- a/Source/cmCoreTryCompile.cxx
+++ b/Source/cmCoreTryCompile.cxx
@@ -226,7 +226,7 @@ int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv,
} else if (doing == DoingCMakeFlags) {
cmakeFlags.push_back(argv[i]);
} else if (doing == DoingCompileDefinitions) {
- compileDefs.push_back(argv[i]);
+ cmSystemTools::ExpandListArgument(argv[i], compileDefs);
} else if (doing == DoingLinkOptions) {
linkOptions.push_back(argv[i]);
} else if (doing == DoingLinkLibraries) {