MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013784 | CMake | CMake | public | 2012-12-10 21:04 | 2016-06-10 14:31 |
Reporter | valentin | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | moved | ||
Platform | Apple | OS | Mac OSX | OS Version | |
Product Version | CMake 2.8.5 | ||||
Target Version | Fixed in Version | ||||
Summary | 0013784: [OSX] Copy directories as easily as files into the application bundle | ||||
Description | First of all, I apologize for my English :) I'm here to submit a feature request about the Copy File Phase into the application CFBundle. Currently, Cmake doc tells us to handle this phase with the set_source_files_properties() command, instead of any other, like the install() command that Xcode didn't properly transcribe. But if I go on this way, and use the default Makefile generator, copying directories juste create an empty file as use Xcode generator works fine. Copying directory (with target or source properties) can be useful to copy a framework or an external resource. I suggest just add something like the second line std::string copyCommand = "$(CMAKE_COMMAND) -E copy"; copyCommand += cmSystemTools::FileIsDirectory(input) ? "_directory " : " "; in the cmMakefileTargetGenerator::WriteMacOSXContentRules function I understand this more a hack than a conceptual solution, but since the design of this "Copy phase" was initially developed for a file-by-file copy, this is the easier and harmless workaround I see. The ideal solution would be to port the MACOSX_PACKAGE_LOCATION property on the set_target_properties() command I apologize if this request was already made or wrote. | ||||
Steps To Reproduce | Copy a directory with set_property(SOURCE ${DIR} PROPERTY MACOSX_PACKAGE_LOCATION Resources) and use the Makefile generator. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-12-10 21:04 | valentin | New Issue | |||
2012-12-11 22:09 | valentin | Note Added: 0031869 | |||
2012-12-11 22:10 | valentin | Note Edited: 0031869 | bug_revision_view_page.php?bugnote_id=31869#r971 | ||
2013-10-27 10:57 | tim blechmann | Note Added: 0034265 | |||
2015-01-11 00:02 | Davy Durham | Note Added: 0037661 | |||
2016-06-10 14:28 | Kitware Robot | Note Added: 0042168 | |||
2016-06-10 14:28 | Kitware Robot | Status | new => resolved | ||
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|