summaryrefslogtreecommitdiff
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-09-24 14:25:35 -0400
committerBrad King <brad.king@kitware.com>2014-09-29 16:05:52 -0400
commit227a336714274992f90ad171bd6588d8dd17b76c (patch)
tree3524368f279887fda8222d5d89cf4ee8f7555dfa /Source/cmVisualStudio10TargetGenerator.cxx
parent4a24015afccfa71bed9ea741af38ef4463740074 (diff)
downloadcmake-227a336714274992f90ad171bd6588d8dd17b76c.tar.gz
VS: Use case-insensitive check for hlsl,jpg,png,xml file extensions
These "extra" sources should map to the proper tool even when they are not in lower case.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 4b5c83f689..3cb0c61314 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -1130,7 +1130,7 @@ void cmVisualStudio10TargetGenerator::WriteExtraSource(cmSourceFile const* sf)
bool toolHasSettings = false;
std::string tool = "None";
std::string shaderType;
- std::string const& ext = sf->GetExtension();
+ std::string ext = cmSystemTools::LowerCase(sf->GetExtension());
if(ext == "hlsl")
{
tool = "FXCompile";