mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 22:50:26 -06:00
install: Support generator expressions in FILES and PROGRAMS mode
Teach the install(FILES) and install(PROGRAMS) commands to evaluate generator expressions in the list of files. Extend the ExportImport test to cover installation cases involving generator expressions.
This commit is contained in:
@@ -109,7 +109,8 @@ void cmInstallProgramsCommand::FinalPass()
|
||||
std::string cmInstallProgramsCommand
|
||||
::FindInstallSource(const char* name) const
|
||||
{
|
||||
if(cmSystemTools::FileIsFullPath(name))
|
||||
if(cmSystemTools::FileIsFullPath(name) ||
|
||||
cmGeneratorExpression::Find(name) == 0)
|
||||
{
|
||||
// This is a full path.
|
||||
return name;
|
||||
|
||||
Reference in New Issue
Block a user