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.
This commit is contained in:
parent
4a24015afc
commit
227a336714
|
@ -1130,7 +1130,7 @@ void cmVisualStudio10TargetGenerator::WriteExtraSource(cmSourceFile const* sf)
|
||||||
bool toolHasSettings = false;
|
bool toolHasSettings = false;
|
||||||
std::string tool = "None";
|
std::string tool = "None";
|
||||||
std::string shaderType;
|
std::string shaderType;
|
||||||
std::string const& ext = sf->GetExtension();
|
std::string ext = cmSystemTools::LowerCase(sf->GetExtension());
|
||||||
if(ext == "hlsl")
|
if(ext == "hlsl")
|
||||||
{
|
{
|
||||||
tool = "FXCompile";
|
tool = "FXCompile";
|
||||||
|
|
Loading…
Reference in New Issue