diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-02-24 22:36:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-08 18:05:38 (GMT) |
commit | 1a1b737c99ac0bd0d555fde2fadf77f08516a4ea (patch) | |
tree | 552432238277036e6d3f846d87276db507cb949d /Source/cmComputeLinkInformation.cxx | |
parent | 24b5e93de2c753e94cae3b41c1ca7cddaa03e5e7 (diff) | |
download | CMake-1a1b737c99ac0bd0d555fde2fadf77f08516a4ea.zip CMake-1a1b737c99ac0bd0d555fde2fadf77f08516a4ea.tar.gz CMake-1a1b737c99ac0bd0d555fde2fadf77f08516a4ea.tar.bz2 |
stringapi: Use strings for generator names
Diffstat (limited to 'Source/cmComputeLinkInformation.cxx')
-rw-r--r-- | Source/cmComputeLinkInformation.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx index e4e2047..62eaec2 100644 --- a/Source/cmComputeLinkInformation.cxx +++ b/Source/cmComputeLinkInformation.cxx @@ -1127,9 +1127,10 @@ void cmComputeLinkInformation::AddFullItem(std::string const& item) // Full path libraries should specify a valid library file name. // See documentation of CMP0008. + std::string generator = this->GlobalGenerator->GetName(); if(this->Target->GetPolicyStatusCMP0008() != cmPolicies::NEW && - (strstr(this->GlobalGenerator->GetName(), "Visual Studio") || - strstr(this->GlobalGenerator->GetName(), "Xcode"))) + (generator.find("Visual Studio") != generator.npos || + generator.find("Xcode") != generator.npos)) { std::string file = cmSystemTools::GetFilenameName(item); if(!this->ExtractAnyLibraryName.find(file.c_str())) |