[CMake] iOS library in an app

marius at porkholt.org marius at porkholt.org
Mon Apr 9 10:23:27 EDT 2012


I have the following setup:
2 targets: one iOS library and one iOS executable
The problem is that Xcode outputs the build products in ${CMAKE_BINARY_DIR}/Debug-iphoneos (or -iphonesimulator) and the Xcode generator, instead of adding the build product of the lib target to the linking phase, adds the library in ${CMAKE_BINARY_DIR}/Debug (or Release, depending on the configuration) to the linker flags. 
The building fails because of the "-iphoneos/-iphonesimulator" Xcode appends to the build directory depending if you compile for the device or of the simulator.
Any advice?

Marius Petcu, 
Lead Developer at http://porkholt.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120409/6cca72a4/attachment-0001.htm>


More information about the CMake mailing list