diff options
author | Sumit Bhardwaj <bhardwajs@outlook.com> | 2021-12-25 06:38:13 (GMT) |
---|---|---|
committer | Sumit Bhardwaj <bhardwajs@outlook.com> | 2022-02-21 00:47:36 (GMT) |
commit | a334f1b90647a813f846d100b1b4fe335eb95b62 (patch) | |
tree | 33e7e08eeefce9bbc03d42c6c8a5b2113f62e4fb /Source/cmGlobalVisualStudio10Generator.cxx | |
parent | cc8f5a7dbea1dea3f94dbed1184d013277ed15ef (diff) | |
download | CMake-a334f1b90647a813f846d100b1b4fe335eb95b62.zip CMake-a334f1b90647a813f846d100b1b4fe335eb95b62.tar.gz CMake-a334f1b90647a813f846d100b1b4fe335eb95b62.tar.bz2 |
VS: Write ZERO_CHECK.proj for VS19 and above
For VS 19 and above, switch the format of project file to
`VsProjectType::proj` for ZERO_CHECK target. The `ZERO_CHECK.proj`
consists of primitive MSBuild commands only and has no dependency on any
other targets or props files. This proj file is written as a
`ProjectReference` for other targets, but is not written to the sln
file.
Diffstat (limited to 'Source/cmGlobalVisualStudio10Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio10Generator.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.cxx b/Source/cmGlobalVisualStudio10Generator.cxx index db54b86..35448ee 100644 --- a/Source/cmGlobalVisualStudio10Generator.cxx +++ b/Source/cmGlobalVisualStudio10Generator.cxx @@ -1286,6 +1286,14 @@ cmGlobalVisualStudio10Generator::GenerateBuildCommand( return makeCommands; } +bool cmGlobalVisualStudio10Generator::IsInSolution( + const cmGeneratorTarget* gt) const +{ + return gt->IsInBuildSystem() && + !(this->Version >= cmGlobalVisualStudioGenerator::VSVersion::VS16 && + gt->GetName() == CMAKE_CHECK_BUILD_SYSTEM_TARGET); +} + bool cmGlobalVisualStudio10Generator::Find64BitTools(cmMakefile* mf) { if (this->DefaultPlatformToolset == "v100") { |