mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Teach configure_file to handle directory names
This commit teaches configure_file how to handle directories for input and output. It is an error if the input is a directory. If the output is a directory we put the configured copy of the input file in it with the same name. See issue #9537.
This commit is contained in:
@@ -66,8 +66,11 @@ public:
|
||||
"values referenced in the file content. "
|
||||
"If <input> is a relative path it is evaluated with respect to "
|
||||
"the current source directory. "
|
||||
"The <input> must be a file, not a directory. "
|
||||
"If <output> is a relative path it is evaluated with respect to "
|
||||
"the current binary directory. "
|
||||
"If <output> names an existing directory the input file is placed "
|
||||
"in that directory with its original name. "
|
||||
"\n"
|
||||
"This command replaces any variables in the input file referenced as "
|
||||
"${VAR} or @VAR@ with their values as determined by CMake. If a "
|
||||
|
||||
Reference in New Issue
Block a user