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                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to