diff options
author | Brad King <brad.king@kitware.com> | 2014-09-24 18:25:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-09-29 20:05:52 (GMT) |
commit | 227a336714274992f90ad171bd6588d8dd17b76c (patch) | |
tree | 3524368f279887fda8222d5d89cf4ee8f7555dfa /Source | |
parent | 4a24015afccfa71bed9ea741af38ef4463740074 (diff) | |
download | CMake-227a336714274992f90ad171bd6588d8dd17b76c.zip CMake-227a336714274992f90ad171bd6588d8dd17b76c.tar.gz CMake-227a336714274992f90ad171bd6588d8dd17b76c.tar.bz2 |
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')
-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 4b5c83f..3cb0c61 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"; |