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:
parent
205fce61b6
commit
b14abe31a9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue