diff options
author | Peter Kuemmel <syntheticpp@gmx.net> | 2012-06-08 20:01:57 (GMT) |
---|---|---|
committer | Peter Kuemmel <syntheticpp@gmx.net> | 2012-06-08 20:59:18 (GMT) |
commit | 941afa571c9f45c52bb935bad1c3b83fe415372e (patch) | |
tree | 85aeed7ac4e10f7404414d17316cf05670ed9516 /Source/cmGlobalNinjaGenerator.cxx | |
parent | 033a687acd828ad6667d154939ffdbc482ab047f (diff) | |
download | CMake-941afa571c9f45c52bb935bad1c3b83fe415372e.zip CMake-941afa571c9f45c52bb935bad1c3b83fe415372e.tar.gz CMake-941afa571c9f45c52bb935bad1c3b83fe415372e.tar.bz2 |
Ninja: allow spaces in source path
And make /showIncude prefix visible for all build rules
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index 9a2597b..648855c 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -458,8 +458,7 @@ void cmGlobalNinjaGenerator else if(*l == "RC") { // check if mingw is used - const char* cc = mf->GetDefinition("CMAKE_C_COMPILER"); - if(cc && std::string(cc).find("gcc.exe") != std::string::npos) + if(mf->IsOn("CMAKE_COMPILER_IS_MINGW")) { UsingMinGW = true; std::string rc = cmSystemTools::FindProgram("windres"); @@ -467,17 +466,6 @@ void cmGlobalNinjaGenerator rc = "windres.exe";; mf->AddDefinition("CMAKE_RC_COMPILER", rc.c_str()); } - else if (cc && std::string(cc).find("cl.exe") != std::string::npos) - { - const char* cmake = mf->GetDefinition("CMAKE_COMMAND"); - std::string bindir = cmake ? cmake : ""; - cmSystemTools::ReplaceString(bindir, "cmake.exe", ""); - std::vector<std::string> locations; - locations.push_back(bindir); - std::string cldeps = cmSystemTools::FindProgram("cmcldeps", locations); - if(!cldeps.empty()) - mf->AddDefinition("CMAKE_CMCLDEPS_EXECUTABLE", cldeps.c_str()); - } } this->cmGlobalGenerator::EnableLanguage(language, mf, optional); this->ResolveLanguageCompiler(*l, mf, optional); |