From 227a336714274992f90ad171bd6588d8dd17b76c Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 24 Sep 2014 14:25:35 -0400 Subject: [PATCH] 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. --- Source/cmVisualStudio10TargetGenerator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 4b5c83f68..3cb0c6131 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";