View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006674CMakeCPackpublic2008-03-28 11:492016-06-10 14:30
ReporterNicolas Despres 
Assigned ToBill Hoffman 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0006674: CPack.cmake does not handle generated package description file
DescriptionThe CPack.cmake module check that package description files such as the one refered by CPACK_PACKAGE_DESCRIPTION_FILE exists. This is done at cmake time. Thus, it is impossible to generate such a file using ADD_CUSTOM_COMMAND.

TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0010972)
Alex Neundorf (developer)
2008-03-28 20:29

CPACK_RESOURCE_FILE_LICENSE, CPACK_RESOURCE_FILE_README and CPACK_RESOURCE_FILE_WELCOME are handled the same way.

I guess if it is changed for CPACK_PACKAGE_DESCRIPTION_FILE it should be changed for these files in the same way.

Alex
(0021593)
simonh (reporter)
2010-08-02 10:18

Could we not check if the specified file is generated by the project? Can anyone point me at the relevant sources and I'll try to write a patch?
(0021995)
Eric NOULARD (developer)
2010-08-28 11:08

Concerning the C++ code you can search for "GENERATED"
but this would apply to source file which were flagged as
"GENERATED". (cf set_source_files_properties).

I think this is used to source files attached to some target
(cmTarget --> cmTarget.[h|cxx])

but those files may not be seen in **any** target
so they won't be considered "source files" at all.

Now CPack.cmake may try to use "get_source_files_property"
for checking "GENERATED" but if the file is not a source file...

I don't really know if CMake knows the exhaustive list
of file that "will" be generated by add_custom_command
you may have to check the Source/cmAddCustomCommandCommand.cxx
in order check how it handles OUTPUT arguments.
(0041419)
Kitware Robot (administrator)
2016-06-10 14:27

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2008-03-28 11:49 Nicolas Despres New Issue
2008-03-28 20:28 Alex Neundorf Category CMake => CPack
2008-03-28 20:29 Alex Neundorf Note Added: 0010972
2008-06-06 11:26 Bill Hoffman Status new => assigned
2008-06-06 11:26 Bill Hoffman Assigned To => Bill Hoffman
2010-08-02 10:18 simonh Note Added: 0021593
2010-08-28 11:08 Eric NOULARD Note Added: 0021995
2016-06-10 14:27 Kitware Robot Note Added: 0041419
2016-06-10 14:27 Kitware Robot Status assigned => resolved
2016-06-10 14:27 Kitware Robot Resolution open => moved
2016-06-10 14:30 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team