diff --git a/Source/cmInstallGenerator.cxx b/Source/cmInstallGenerator.cxx index cd159651a..c2e0256f1 100644 --- a/Source/cmInstallGenerator.cxx +++ b/Source/cmInstallGenerator.cxx @@ -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; }