summaryrefslogtreecommitdiff
path: root/Source/cmGlobalVisualStudioGenerator.h
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-11-23 14:20:08 -0500
committerKyle Edwards <kyle.edwards@kitware.com>2020-11-23 14:20:08 -0500
commitef91fb02f3658954b631e46858e254008ca58132 (patch)
treeadf5e1de4a729c07eacc90e41722da39c46f40c5 /Source/cmGlobalVisualStudioGenerator.h
parentd1b6879ececa9fd24d346ddb6c3474cada9f1823 (diff)
downloadcmake-ef91fb02f3658954b631e46858e254008ca58132.tar.gz
cmGlobalGenerator: FindMakeProgram() at a generator-specific time
d5b5c192 moved FindMakeProgram() to an earlier time, which resulted in CMAKE_MAKE_PROGRAM not being read from the toolchain file. Change it to only call FindMakeProgram() early in the specific cases of Visual Studio and Xcode, and restore the old behavior for all other generators. Fixes: #21486
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.h')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.h b/Source/cmGlobalVisualStudioGenerator.h
index 3c464083c1..3bfcbd04d9 100644
--- a/Source/cmGlobalVisualStudioGenerator.h
+++ b/Source/cmGlobalVisualStudioGenerator.h
@@ -166,6 +166,11 @@ protected:
void WriteSLNHeader(std::ostream& fout);
+ FindMakeProgramStage GetFindMakeProgramStage() const override
+ {
+ return FindMakeProgramStage::Early;
+ }
+
bool ComputeTargetDepends() override;
class VSDependSet : public std::set<std::string>
{