From 7bbab25961680eafabd13356c1cba747a41a3e37 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 6 Jan 2011 16:48:46 -0500 Subject: [PATCH] Add support for source files in custom targets for VS 10 (Bug#11330). In VS10, CMake was not adding the source files that were in the SOURCES list for add_custom_target. This patch fixes that issue. --- Source/cmVisualStudio10TargetGenerator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index ed017c7d6..4f64a2de7 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -651,7 +651,7 @@ void cmVisualStudio10TargetGenerator::WriteObjSources() void cmVisualStudio10TargetGenerator::WriteCLSources() { - if(this->Target->GetType() > cmTarget::MODULE_LIBRARY) + if(this->Target->GetType() > cmTarget::UTILITY) { return; }