summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallGenerator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-04-20 18:03:43 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2022-04-20 19:33:34 (GMT)
commitd74761b181ccf21e50a3b371617ec8f24cd54a4d (patch)
tree894407770943d0e2429fe8598ece1014da769b4f /Source/cmInstallGenerator.cxx
parent59cc92085ea7c5a81de7d79946fa97f045adea78 (diff)
downloadCMake-d74761b181ccf21e50a3b371617ec8f24cd54a4d.zip
CMake-d74761b181ccf21e50a3b371617ec8f24cd54a4d.tar.gz
CMake-d74761b181ccf21e50a3b371617ec8f24cd54a4d.tar.bz2
generated-scripts: simplify `if` conditions
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 4cfeb47..00eb8c3 100644
--- a/Source/cmInstallGenerator.cxx
+++ b/Source/cmInstallGenerator.cxx
@@ -160,9 +160,9 @@ void cmInstallGenerator::AddInstallRule(
std::string cmInstallGenerator::CreateComponentTest(
const std::string& component, bool exclude_from_all)
{
- std::string result = R"("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "x)";
+ std::string result = "CMAKE_INSTALL_COMPONENT STREQUAL \"";
result += component;
- result += "x\"";
+ result += "\"";
if (!exclude_from_all) {
result += " OR NOT CMAKE_INSTALL_COMPONENT";
}