summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-08-02 18:06:58 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-08-02 18:07:13 (GMT)
commit99d3e209996caf2d07684822ed90372a7b89a166 (patch)
treeb94adb8e1678ba4e28cb98bcfd1503ccc8a38fc0 /Source/cmVisualStudio10TargetGenerator.cxx
parent9faefbc67c5b564e5c400411731aa4340ce47164 (diff)
parent53aabe9817dfad76869c41c2eeb46fb874bf188b (diff)
downloadCMake-99d3e209996caf2d07684822ed90372a7b89a166.zip
CMake-99d3e209996caf2d07684822ed90372a7b89a166.tar.gz
CMake-99d3e209996caf2d07684822ed90372a7b89a166.tar.bz2
Merge topic 'vs-iface-include-dirs'
53aabe9817 VS: Fix assertion failure on INCLUDE_DIRECTORIES in INTERFACE libraries Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6411
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 82880a9..065601b 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -4091,6 +4091,9 @@ void cmVisualStudio10TargetGenerator::WriteMidlOptions(
if (this->ProjectType == csproj) {
return;
}
+ if (this->GeneratorTarget->GetType() > cmStateEnums::UTILITY) {
+ return;
+ }
// This processes *any* of the .idl files specified in the project's file
// list (and passed as the item metadata %(Filename) expressing the rule