summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-12-16 14:20:51 (GMT)
committerBrad King <brad.king@kitware.com>2008-12-16 14:20:51 (GMT)
commitb14abe31a9a1956e306e3f90747389c920164128 (patch)
treedd2bbf9f3254b4c2a9ee77ce0112a921621e615a /Source/cmInstallGenerator.cxx
parent205fce61b66df1898a45fe49195101d7236790d5 (diff)
downloadCMake-b14abe31a9a1956e306e3f90747389c920164128.zip
CMake-b14abe31a9a1956e306e3f90747389c920164128.tar.gz
CMake-b14abe31a9a1956e306e3f90747389c920164128.tar.bz2
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.
Diffstat (limited to 'Source/cmInstallGenerator.cxx')
-rw-r--r--Source/cmInstallGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmInstallGenerator.cxx b/Source/cmInstallGenerator.cxx
index cd15965..c2e0256 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;
}