MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014854 | CMake | CMake | public | 2014-03-31 12:53 | 2014-11-03 08:38 |
Reporter | Petr Lefner | ||||
Assigned To | Brad King | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Mac | OS | OS X | OS Version | 10.9.2 |
Product Version | CMake 2.8.12.2 | ||||
Target Version | CMake 3.1 | Fixed in Version | CMake 3.1 | ||
Summary | 0014854: Xcode projects with binary files cannot load in Xcode | ||||
Description | If an project lists some binary files, CMake generator creates .pbxproject where htese files are listed as 'source files', which causes Xocde unable* to load that project. * depends on total file size or amount; say that 300MB makes it about 1 hour until Xcode can be used. Until that, hourglass and 200% CPU drain suggest heavy background thinking about he files. If those file are not listed in project, Xcode opens it like a charm. | ||||
Steps To Reproduce | Create a CMakeLists.txt with usual structure to have some binary target in there. Then add some binary files (assets or resources), let say we have them within the DATA_FILES list variable (full paths). Intention is to get those files into app bundle (.app/). For this case, do not consider that to put into .app, a small hack must be achieved. # Collect resource files foreach(FILE ${DATA_FILES}) set_source_files_properties( ${FILE} PROPERTIES MACOSX_PACKAGE_LOCATION ${MACOSX_BUNDLE_BUNDLE_NAME}.app/${TARGET} GENERATED TRUE ) list(APPEND ASSETS ${FILE}) endforeach() # Add binary target and register resoruce files in project listings add_executable(osx_app_target MACOSX_BUNDLE ${SOURCES} ${ASSETS}) | ||||
Additional Information | Given method worked prior 2.8.12 (not sure exactly about problem version). There's same issue if one wants to copy files via a custom command: # Copy from SRC to DST, being part of current target. add_custom_command(OUTPUT ${DST} COMMAND ${CMAKE_COMMAND} -E copy ${SRC} ${DST} MAIN_DEPENDENCY ${SRC} COMMENT "Copying ${SRC} to ${DST}") This used to do same troubles even already prior 2.8.12 In case of further assistance, do not hesitate to ask for more information. If htere's a new way adding resources to MACOSX_BUNDLE target (into .app), I did not found it - please point me out. | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2014-03-31 12:53 | Petr Lefner | New Issue | |||
2014-03-31 13:03 | Brad King | Note Added: 0035582 | |||
2014-03-31 13:37 | Petr Lefner | Note Added: 0035585 | |||
2014-03-31 14:09 | Brad King | Note Added: 0035587 | |||
2014-03-31 16:25 | Petr Lefner | Note Edited: 0035585 | bug_revision_view_page.php?bugnote_id=35585#r1424 | ||
2014-03-31 16:31 | Petr Lefner | Note Added: 0035592 | |||
2014-04-01 09:42 | Brad King | Note Added: 0035599 | |||
2014-04-01 18:27 | Petr Lefner | Note Added: 0035614 | |||
2014-04-01 18:28 | Petr Lefner | Note Edited: 0035614 | bug_revision_view_page.php?bugnote_id=35614#r1432 | ||
2014-05-16 10:23 | Brad King | Note Added: 0035890 | |||
2014-05-16 10:23 | Brad King | Assigned To | => Brad King | ||
2014-05-16 10:23 | Brad King | Status | new => assigned | ||
2014-05-16 10:23 | Brad King | Target Version | => CMake 3.1 | ||
2014-05-19 09:42 | Brad King | Status | assigned => resolved | ||
2014-05-19 09:42 | Brad King | Resolution | open => fixed | ||
2014-05-19 09:42 | Brad King | Fixed in Version | => CMake 3.1 | ||
2014-11-03 08:38 | Robert Maynard | Note Added: 0037138 | |||
2014-11-03 08:38 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|