<div dir="ltr">Hi,<div><br></div><div style>If I set the LIBRARY_OUTPUT_PATH for iOS projects like this:</div><div style><br></div><div style>someDir/lib/</div><div style><br></div><div style>then the final directory for the library outputs is:</div>

<div style><br></div><div style>someDir/lib/debug</div><div style><br></div><div style>assuming I am building the debug configuration. But if I now specify the directories for linking:</div><div style><br></div><div style>

link_directories(someDir/lib)</div><div style><br></div><div style>in Xcode the path becomes:</div><div style><br></div><div style>someDir/lib/debug-iphonesimulator</div><div style><br></div><div style>If I do not set LIBRARY_OUTPUT_PATH then CMake correct sets the output directory to</div>

<div style><br></div><div style>build/src/debug-iphonesimulator</div><div style><br></div><div style>So it appears that CMake does not add -iphonesimulator (or doesn&#39;t let Xcode add it - not sure as my knowledge of CMake is limited) for custom library output paths.</div>

<div style><br></div><div style>Is this a bug? If not, what am I doing wrong?</div><div style><br></div><div style>Thanks,</div><div style>Saad</div><div style><br></div></div>