From b14abe31a9a1956e306e3f90747389c920164128 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 16 Dec 2008 09:20:51 -0500 Subject: [PATCH] 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. --- Source/cmInstallGenerator.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }