summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-10-24 14:40:00 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-10-24 14:40:24 (GMT)
commit3793bed9df0c7f056eaf85c0267088fc8cea647c (patch)
tree7e19f26f0baacc5bc756e90f287814567f6d8e22 /Source/cmVisualStudio10TargetGenerator.cxx
parent008cb6aa991a515cd31a9b7e6a5837555ff2d43a (diff)
parentd004d8c59a6daa5b27c6e737b687793f51557704 (diff)
downloadCMake-3793bed9df0c7f056eaf85c0267088fc8cea647c.zip
CMake-3793bed9df0c7f056eaf85c0267088fc8cea647c.tar.gz
CMake-3793bed9df0c7f056eaf85c0267088fc8cea647c.tar.bz2
Merge topic 'vs-csharp-in-custom-target'
d004d8c59a VS: Fix crash on CSharp sources in a custom target Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2515
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 7383efd..eb1a27e 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -1122,6 +1122,10 @@ void cmVisualStudio10TargetGenerator::WriteMSToolConfigurationValues(
void cmVisualStudio10TargetGenerator::WriteMSToolConfigurationValuesManaged(
Elem& e1, std::string const& config)
{
+ if (this->GeneratorTarget->GetType() > cmStateEnums::OBJECT_LIBRARY) {
+ return;
+ }
+
cmGlobalVisualStudio10Generator* gg = this->GlobalGenerator;
Options& o = *(this->ClOptions[config]);