mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 07:11:05 -06:00
Ninja: windres is also used for cross-compiling
It makes no sense to set windres.exe as default, especially when we are on Linux or Unix.
This commit is contained in:
@@ -475,9 +475,8 @@ void cmGlobalNinjaGenerator
|
||||
{
|
||||
UsingMinGW = true;
|
||||
std::string rc = cmSystemTools::FindProgram("windres");
|
||||
if(rc.empty())
|
||||
rc = "windres.exe";;
|
||||
mf->AddDefinition("CMAKE_RC_COMPILER", rc.c_str());
|
||||
if(!rc.empty())
|
||||
mf->AddDefinition("CMAKE_RC_COMPILER", rc.c_str());
|
||||
}
|
||||
}
|
||||
this->cmGlobalGenerator::EnableLanguage(language, mf, optional);
|
||||
|
||||
Reference in New Issue
Block a user