TEA_ADD_TCL_SOURCES prevents generated files
Closed / Invalid950210ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 22 years ago
Descriptionplain2004-05-07 23:36:48
TEA_ADD_TCL_SOURCES strictly requires the files to exist at configure time. This prevents the use of any configure-generated files. For example, one might want a foo.tcl to be generated from a foo.tcl.in to get an up to date value of @PACKAGE_VERSION@ substituted into a [package require -exact foo @PACKAGE_VERSION@] commands that verifies the script library and binary library are two parts of the same version.
dgpplain2004-05-08 07:28:38
Logged In: YES user_id=80530 turns out this is fairly easy to workaround. Just have a foo.tcl file in place (it can even be empty). That will satisfy the TEA_ADD_TCL_SOURCES testing, and at the end of the configure, the correct contents will still be generated from foo.tcl.in
dgp Ticket [950210ffff]: 1 change
[History diff]2005-01-26 01:29:56
dgpplain2005-03-25 23:15:42
Logged In: YES user_id=80530 It appears that such generated files are not meant to be used as arguments to TEA_ADD_TCL_SOURCES. When the build directory is different from the source directory (common case) the custom-configured generated file will be produced in the build dir, but the original in the source dir will be the copy that gets installed. Looks like the Makefile.in has to be customized in circumstances like this to explicitly install the generated file.
dgpplain2005-03-26 00:16:18
Logged In: YES user_id=80530 Looks like this whole report was based on user confusion.
Log in (anonymous is fine) to add a comment.