mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 23:28:32 -05:00
Merge topic 'install-CMP0054'
72a1af29 install: Avoid CMP0054 warning in generated install script
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1204
This commit is contained in:
@@ -131,9 +131,9 @@ void cmInstallGenerator::AddInstallRule(
|
||||
std::string cmInstallGenerator::CreateComponentTest(const char* component,
|
||||
bool exclude_from_all)
|
||||
{
|
||||
std::string result = "\"${CMAKE_INSTALL_COMPONENT}\" STREQUAL \"";
|
||||
std::string result = "\"x${CMAKE_INSTALL_COMPONENT}x\" STREQUAL \"x";
|
||||
result += component;
|
||||
result += "\"";
|
||||
result += "x\"";
|
||||
if (!exclude_from_all) {
|
||||
result += " OR NOT CMAKE_INSTALL_COMPONENT";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user