diff options
author | Brad King <brad.king@kitware.com> | 2014-09-24 14:25:35 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-09-29 16:05:52 -0400 |
commit | 227a336714274992f90ad171bd6588d8dd17b76c (patch) | |
tree | 3524368f279887fda8222d5d89cf4ee8f7555dfa | |
parent | 4a24015afccfa71bed9ea741af38ef4463740074 (diff) | |
download | cmake-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.
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 2 |
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"; |