MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013487 | CMake | CMake | public | 2012-08-22 16:31 | 2016-06-10 14:31 |
Reporter | Bill Stouder-Studenmund | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | Mac | OS | OS X | OS Version | N/A |
Product Version | CMake 2.8.8 | ||||
Target Version | Fixed in Version | ||||
Summary | 0013487: CMake can't make kexts | ||||
Description | CMake can build targets which are apps, but it can't make kexts (kernel modules). Fix isn't hard. | ||||
Steps To Reproduce | |||||
Additional Information | I have gotten CMake to generate kexts that work. The issue that MUST be fixed in-code is that kexts have an extension of ".kext" while OS X bundles currently are hard-coded to be ".app". As a work-around, my CMakeLists.txt has: set(SLE System/Library/Extensions) ... install(TARGETS myKext BUNDLE DESTINATION /${SLE} ) install(CODE "file(RENAME ${DSTROOT}/${SLE}/myKext.app ${DSTROOT}/${SLE}/myKext.kext)") I don't know how to fix this, but I suggest two new target properties for an OS X bundle: MACOSX_BUNDLE_EXTENSION # defaults to "app" MACOSX_BUNDLE_TYPE # type in the Info.plist, defaults to "APPL" Generating a kext did also require some custom link options: set_target_properties(myKext PROPERTIES LINKER_LANGUAGE C) set_target_properties(myKext PROPERTIES LINK_FLAGS "-Xlinker -kext -lcc_kext") but these were achievable within the existing set of settings. I also am not sure exactly which of those are needed; my project has been updated over time and may not use the recommended starting settings. Also, we mix C and C++ (IOKit). | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-08-22 16:31 | Bill Stouder-Studenmund | New Issue | |||
2012-08-22 16:39 | David Cole | Assigned To | => David Cole | ||
2012-08-22 16:39 | David Cole | Status | new => assigned | ||
2012-08-22 16:42 | David Cole | Note Added: 0030742 | |||
2012-08-22 17:29 | Bill Stouder-Studenmund | Note Added: 0030744 | |||
2012-08-22 21:34 | David Cole | Note Added: 0030745 | |||
2012-08-22 21:35 | David Cole | Assigned To | David Cole => | ||
2012-08-22 21:35 | David Cole | Status | assigned => new | ||
2016-06-10 14:28 | Kitware Robot | Note Added: 0042108 | |||
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 | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|