<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I have the following setup:</div><div>2 targets: one iOS library and one iOS executable</div><div>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&nbsp;${CMAKE_BINARY_DIR}/Debug (or Release, depending on the configuration) to the linker flags.&nbsp;</div><div>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.</div><div>Any advice?</div><div><br></div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>Marius Petcu,&nbsp;</div><div>Lead Developer at&nbsp;<a href="http://porkholt.org">http://porkholt.org</a></div></span>
</div>
<br></body></html>