[cmake-developers] [CMake 0013784]: [OSX] Copy directories as easily as files into the application bundle
Mantis Bug Tracker
mantis at public.kitware.com
Mon Dec 10 21:04:10 EST 2012
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13784
======================================================================
Reported By: valentin
Assigned To:
======================================================================
Project: CMake
Issue ID: 13784
Category: CMake
Reproducibility: have not tried
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-12-10 21:04 EST
Last Modified: 2012-12-10 21:04 EST
======================================================================
Summary: [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.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-12-10 21:04 valentin New Issue
======================================================================
More information about the cmake-developers
mailing list