[cmake-developers] [CMake 0014191]: Regression.. framework paths are not added to compile args in XCode generator

Mantis Bug Tracker mantis at public.kitware.com
Mon Jun 3 21:56:26 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14191 
====================================================================== 
Reported By:                Edward Rudd
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14191
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-06-04 02:56 WAT
Last Modified:              2013-06-04 02:56 WAT
====================================================================== 
Summary:                    Regression..  framework paths are not added to
compile args in XCode generator
Description: 
I have a cmake that has lines like this to find  private framework

    FIND_LIBRARY(SDL2_LIBRARY SDL2
        PATHS ${CommonRoot}/SDL2/lib/osx
        NO_DEFAULT_PATH)

and then later for a add_library target does this to add the framework path into
the build

    TARGET_LINK_LIBRARIES(MyLIB ${SDL2_LIBRARY})

with 2.8.10 this would add a -F/path/to/SDL2/lib/osx argument to GCC/G++. 
However in 2.8.11 this does not happen and compiles fail due to gcc' not being
able to find the frameworks for fetching the headers inside of them  (e.g.
<SDL2/SDL.h> )

if I use the Make generator it works fine and continues to add in the -F
parameter.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-06-04 02:56 Edward Rudd    New Issue                                    
======================================================================




More information about the cmake-developers mailing list