How to find a iOS/mac OS X framework via Cmake

2019-07-21 00:10发布

Context

I packaged Boost C++ libraries into a framework (for iOS) via this script. The script produces boost.framework. The framework works fine when linked into an "hand made" Xcode project to build an iOS app.

Problem

I have another Xcode project (to build an iOS app) which requires boost.framework. This project uses CMake to generate Xcode project and then compile the iOS app. CMake does have support for framework, however, I have not beeen able to get boost.framework recognised by Cmake via my custom FindBoostFramework.cmake file.

FYI: CMake's builtin FindBoost.cmake does not find boost framework. My boost.framework is not located in standard locations (e.g. /System/Library/Framework ) but rather at something along the line of "/Users/Me/Dev/boost.framework".

Does any one know get CmMke find this framework ?

Environment: OS: 10.8 Xcode: 4.4 Cmake 2.8.8

1条回答
叼着烟拽天下
2楼-- · 2019-07-21 00:41

It turns out CMAKE_FRAMEWORK_PATH did NOT contain the directory path containing the framework sought.

查看更多
登录 后发表回答