diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2012-02-19 21:38:10 (GMT) |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2012-02-19 23:20:03 (GMT) |
commit | a1a30340a2eb0174f9f6911ee1e2cf4a36eaac96 (patch) | |
tree | cc1903a317419d0fc35505bee3e50647ffe67ba1 /Source/cmNinjaTargetGenerator.cxx | |
parent | 21997cea4d8694077e8bcf9ba4cbd3d96a3f163c (diff) | |
download | CMake-a1a30340a2eb0174f9f6911ee1e2cf4a36eaac96.zip CMake-a1a30340a2eb0174f9f6911ee1e2cf4a36eaac96.tar.gz CMake-a1a30340a2eb0174f9f6911ee1e2cf4a36eaac96.tar.bz2 |
Ninja: Import library support for Windows
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index 1a8d13d..8a563b6 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -223,22 +223,9 @@ cmNinjaDeps cmNinjaTargetGenerator::ComputeLinkDeps() const if(!cli) return cmNinjaDeps(); - -#ifndef _WIN32 const std::vector<std::string> &deps = cli->GetDepends(); cmNinjaDeps result(deps.size()); std::transform(deps.begin(), deps.end(), result.begin(), MapToNinjaPath()); -#else - // TODO The ninja generator misses a lot on Windows. - // This hack avoids a problem when a Dll is build: - // It builds the .dll but uses the .lib which is then unknown to ninja. - cmNinjaDeps result; - for(unsigned i = 0; i < cli->GetItems().size(); ++i) { - if( cli->GetItems()[i].Target ) { - result.push_back( cli->GetItems()[i].Target->GetName() ); - } - } -#endif return result; } |