VS: Propagate CMAKE_VS_GLOBALS into custom targets

Issue: #19708
This commit is contained in:
Alexander Boczar
2019-09-16 16:55:26 -07:00
committed by Brad King
parent 45b4b4b930
commit e7d57bc3c3
2 changed files with 3 additions and 3 deletions

View File

@@ -6,4 +6,5 @@ vs-vctargetspath
to specify the ``VCTargetsPath`` value for project files.
* The :variable:`CMAKE_VS_GLOBALS` variable value now applies during
compiler identification.
compiler identification and in targets created by the
:command:`add_custom_target` command.

View File

@@ -511,8 +511,7 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
initProp("DOTNET_TARGET_FRAMEWORK_VERSION");
}
if (this->GetType() != cmStateEnums::INTERFACE_LIBRARY &&
this->GetType() != cmStateEnums::UTILITY) {
if (this->GetType() != cmStateEnums::INTERFACE_LIBRARY) {
// check for "CMAKE_VS_GLOBALS" variable and set up target properties
// if any