[cmake-developers] [CMake 0014885]: Linking to frameworks in Xcode generator is buggy
Mantis Bug Tracker
mantis at public.kitware.com
Fri Apr 18 02:43:51 EDT 2014
The following issue has been SUBMITTED.
======================================================================
http://cmake.org/Bug/view.php?id=14885
======================================================================
Reported By: Aggelos Kolaitis
Assigned To:
======================================================================
Project: CMake
Issue ID: 14885
Category: CMake
Reproducibility: always
Severity: major
Priority: high
Status: new
======================================================================
Date Submitted: 2014-04-18 02:43 EDT
Last Modified: 2014-04-18 02:43 EDT
======================================================================
Summary: 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.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-04-18 02:43 Aggelos KolaitisNew Issue
2014-04-18 02:43 Aggelos KolaitisFile Added: cmake_bug.zip
======================================================================
More information about the cmake-developers
mailing list