MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014885 | CMake | CMake | public | 2014-04-18 02:43 | 2016-06-10 14:31 |
Reporter | Aggelos Kolaitis | ||||
Assigned To | Kitware Robot | ||||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | Apple | OS | Mac OS X | OS Version | 10.9 |
Product Version | CMake 2.8.12.2 | ||||
Target Version | Fixed in Version | ||||
Summary | 0014885: Linking to frameworks in Xcode generator is buggy | ||||
Description | When using the Xcode generator, even though CMake can properly find all frameworks, the building process will fail with 'framework not found' errors. In a discussion in the CMake mailing list, someone suggested that this happens because Apple no longer looks in /Library/Frameworks and ~/Library/Frameworks by default. | ||||
Steps To Reproduce | Unzip the attached archive, you will see the following tree: cmake_bug/ | CMakeLists.txt | dummy.c | FindSDL2.cmake Download http://libsdl.org/release/SDL2-2.0.3.dmg [^] and install SDL2.framework in /Library/Frameworks or ~/Library/Frameworks. Run CMake and choose the Xcode generator. You should see this in the cache: > SDL2_LIBRARY /Library/Frameworks/SDL2.framework Hit generate and open the Xcode project. Building will fail with 'SDL2: framework not found'. I can provide more information if needed. | ||||
Additional Information | * A quick workaround is to link directly to the actual SDL2 dylib, but this is not a fix. > SDL2_LIBRARY /Library/Frameworks/SDL2.framework/SDL2 * I haven't tested other frameworks other than SDL2 because I don't own a Mac, this has been reported by my users, but I was able to reproduce it in my friend's Macbook. * This does not happen if I choose the makefile generator. | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://public.kitware.com/Bug/file/5129/cmake_bug.zip | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2014-04-18 02:43 | Aggelos Kolaitis | New Issue | |||
2014-04-18 02:43 | Aggelos Kolaitis | File Added: cmake_bug.zip | |||
2014-04-18 09:16 | Brad King | Note Added: 0035741 | |||
2014-04-22 16:05 | Aggelos Kolaitis | Note Added: 0035760 | |||
2014-04-22 16:12 | Brad King | Note Added: 0035761 | |||
2014-04-23 13:12 | Aggelos Kolaitis | Note Added: 0035765 | |||
2016-06-10 14:29 | Kitware Robot | Note Added: 0042537 | |||
2016-06-10 14:29 | Kitware Robot | Status | new => resolved | ||
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|