diff options
author | Brad King <brad.king@kitware.com> | 2018-09-28 14:58:20 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-09-28 14:58:51 (GMT) |
commit | 8fea6b0764dbf1b6893e7ca81d93cddca2facfce (patch) | |
tree | 82d6eb155bc968f6ce9ad36f027b6f76a0699d6c /Source/cmake.cxx | |
parent | 9c4445a0dd67a0176a00426a3bb6fed149c03810 (diff) | |
parent | 98e4fbdc063ea738f1f2fa38028be14492297d0f (diff) | |
download | CMake-8fea6b0764dbf1b6893e7ca81d93cddca2facfce.zip CMake-8fea6b0764dbf1b6893e7ca81d93cddca2facfce.tar.gz CMake-8fea6b0764dbf1b6893e7ca81d93cddca2facfce.tar.bz2 |
Merge topic 'vs-msbuild-platform'
98e4fbdc06 VS: Pass platform when invoking MSBuild
6597428c36 ctest: Fix generator platform under --build-nocmake
d8294fefe8 cmake: Fix generator platform under --build mode
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2413
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index c26a380..889a5fb 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -2467,6 +2467,14 @@ int cmake::Build(int jobs, const std::string& dir, const std::string& target, return 1; } } + const char* cachedGeneratorPlatform = + this->State->GetCacheEntryValue("CMAKE_GENERATOR_PLATFORM"); + if (cachedGeneratorPlatform) { + cmMakefile mf(gen, this->GetCurrentSnapshot()); + if (!gen->SetGeneratorPlatform(cachedGeneratorPlatform, &mf)) { + return 1; + } + } std::string output; std::string projName; const char* cachedProjectName = |