diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-02-25 01:32:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-08 18:05:39 (GMT) |
commit | 7abf4e313d8e8d59c38f402efaf9cca4e4a2d3ba (patch) | |
tree | 74f74a6301cdd27e3d504c95d2ff1d21ad8fa4da /Source/cmMakefileTargetGenerator.cxx | |
parent | 94fc63e2d5402bc4fa570a92e1f5fe6aba088392 (diff) | |
download | CMake-7abf4e313d8e8d59c38f402efaf9cca4e4a2d3ba.zip CMake-7abf4e313d8e8d59c38f402efaf9cca4e4a2d3ba.tar.gz CMake-7abf4e313d8e8d59c38f402efaf9cca4e4a2d3ba.tar.bz2 |
stringapi: Use strings for dependency information
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index f0c9a3f..28a8f04 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -1496,8 +1496,9 @@ cmMakefileTargetGenerator } //---------------------------------------------------------------------------- -void cmMakefileTargetGenerator::WriteTargetDriverRule(const char* main_output, - bool relink) +void cmMakefileTargetGenerator::WriteTargetDriverRule( + const std::string& main_output, + bool relink) { // Compute the name of the driver target. std::string dir = @@ -1510,10 +1511,7 @@ void cmMakefileTargetGenerator::WriteTargetDriverRule(const char* main_output, // Build the list of target outputs to drive. std::vector<std::string> depends; - if(main_output) - { - depends.push_back(main_output); - } + depends.push_back(main_output); const char* comment = 0; if(relink) |