BUG: Fix component-name test on installation

Generated cmake_install.cmake script code used MATCHES to compare
component names.  This does not support characters considered special by
regular expression syntax in component names.  This change uses STREQUAL
instead.  See issue #8256.
This commit is contained in:
Brad King 2008-12-16 09:20:51 -05:00
parent 205fce61b6
commit b14abe31a9
1 changed files with 2 additions and 2 deletions

View File

@ -189,9 +189,9 @@ std::string
cmInstallGenerator::CreateComponentTest(const char* component)
{
std::string result = "NOT CMAKE_INSTALL_COMPONENT OR "
"\"${CMAKE_INSTALL_COMPONENT}\" MATCHES \"^(";
"\"${CMAKE_INSTALL_COMPONENT}\" STREQUAL \"";
result += component;
result += ")$\"";
result += "\"";
return result;
}