1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-18 00:02:21 +08:00

cxxmodules: use filesystem-safe export names in filenames

Also add tests.

Fixes: #25828
This commit is contained in:
Ben Boeckel
2024-04-29 17:24:23 -04:00
parent 4452d41488
commit 142a85f9c1
10 changed files with 310 additions and 6 deletions

View File

@@ -774,8 +774,8 @@ bool cmExportInstallFileGenerator::
continue;
}
auto prop_filename = cmStrCat("target-", tgt->GetExportName(), '-',
filename_config, ".cmake");
auto prop_filename = cmStrCat("target-", tgt->GetFilesystemExportName(),
'-', filename_config, ".cmake");
prop_files.emplace_back(cmStrCat(dest, prop_filename));
os << "include(\"${CMAKE_CURRENT_LIST_DIR}/" << prop_filename << "\")\n";
}