[CMake] Xcode does not link against frameworks

Daniel Kollmann dankolle at mail.de
Sat Jan 24 06:25:25 EST 2015


Hello,

I add my required frameworks through this function of mine:

function(add_framework target framework)
    if(APPLE)
        find_library(found ${framework})

        if(${found} STREQUAL "${framework}-NOTFOUND³)
            message(FATAL_ERROR "ERROR: ${framework} not found
(${CMAKE_OSX_SYSROOT})")
        endif()

        #message("Found framework ${found}")

        target_link_libraries(${target} ${found})
    endif()
endfunction()

The framework is correctly found and added but still Xcode does neither list
the frameworks as a build phase nor link against them. All symbols appear as
missing.

Maybe there is another step required to include the framework for Xcode.

I am using Cmake 3.1.1

Thanks for the help
Dan


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150124/06d9f696/attachment.html>


More information about the CMake mailing list