Open massich opened 6 years ago
I'm using ac2cmake as suggested by @pfultz2 in this PR and I get this error:
ac2cmake
CMake Warning (dev) at cmake/cget-recipe-utils-config.cmake:390 (configure_file): configure_file called with unknown argument(s): matio/src/Makefile matio/getopt/Makefile matio/tools/Makefile matio/test/Makefile matio/documentation/Makefile
If I understand properly the following snipped passes all the parameters I've used when calling ac_config_file here directly to cmake's configure_file. https://github.com/pfultz2/cget-recipes/blob/8a700affa6bd289db1c4044c34af1894df468920/cmake/cget-recipe-utils/cget-recipe-utils-config.cmake#L385-L390
ac_config_file
configure_file
which ends up violating configure_file's signature:
configure_file(<input> <output> [COPYONLY] [ESCAPE_QUOTES] [@ONLY] [NEWLINE_STYLE [UNIX|DOS|WIN32|LF|CRLF] ])
Any suggestions? Shall we do some sort of foreach(arg ${args}) and then call config_file with ${arg}, but if so how shall we construct the <input> or <output>?
foreach(arg ${args})
config_file
${arg}
<input>
<output>
Yea, it only takes one file, and you need to set the input and output file names.
I'm using
ac2cmake
as suggested by @pfultz2 in this PR and I get this error:If I understand properly the following snipped passes all the parameters I've used when calling
ac_config_file
here directly to cmake'sconfigure_file
. https://github.com/pfultz2/cget-recipes/blob/8a700affa6bd289db1c4044c34af1894df468920/cmake/cget-recipe-utils/cget-recipe-utils-config.cmake#L385-L390which ends up violating
configure_file
's signature:Any suggestions? Shall we do some sort of
foreach(arg ${args})
and then callconfig_file
with${arg}
, but if so how shall we construct the<input>
or<output>
?