<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>I'm using CMake 3.12.2  and having an issue with cmake messing up the RPaths for the final outputted shard Frameworks after doing a cmake --build . --target install </div><div><br></div><div>The output of my build is three shared Frameworks A, B and C </div><div><br></div><div>A is the common library that B and C link against. </div><div><br></div><div>     A</div><div>     /\</div><div>   B  C</div><div><br></div><div><br></div><div>When ONLY building for iphoneos or iphonesimulator then the RPaths seem to come out correct  </div><div>with the following settings : </div><div><br></div><div>set(CMAKE_OSX_SYSROOT "iphoneos") </div><div>set(CMAKE_OSX_ARCHITECTURES "arm64;armv7;i386;x86_64" CACHE STRING "iOS supported archs" FORCE)</div><div><br></div><div>set(CMAKE_SKIP_BUILD_RPATH FALSE) </div><div>set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) </div><div>set(CMAKE_INSTALL_RPATH "@executable_path/Frameworks;@loader_path/Framework") </div><div>set(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE) </div><div>set(CMAKE_INSTALL_NAME_DIR "@rpath")</div><div>set(CMAKE_IOS_INSTALL_COMBINED FALSE)  </div><div><br></div><div>running "otool -L framework/B.framework/B" gives : </div><div>out/framework/B.framework/B (architecture armv7):</div><div><span style="white-space:pre">    </span>@rpath/B.framework/B</div><div><span style="white-space:pre">  </span>@rpath/A.framework/A</div><div>out/framework/B.framework/B (architecture arm64):</div><div><span style="white-space:pre">  </span>@rpath/B.framework/B</div><div><span style="white-space:pre">  </span>@rpath/A.framework/A</div><div><br></div><div>However when running the same build with: </div><div>set(CMAKE_IOS_INSTALL_COMBINED TRUE)</div><div><br></div><div>running "otool -L framework/B.framework/B" gives : </div><div>{FULL_PATH_TO_BUILD_DIR}/Release-iphonesimulator/B.framework/B</div><div>{FULL_PATH_TO_BUILD_DIR}/Release-iphonesimulator/A.framework/A</div><div><br></div><div>What happened to my RPath settings? </div><div>And why are the links to the simulator versions only?</div><div><br></div><div>Thanks,</div><div>Curtis Mahieu</div><div><br></div><div><br></div><div><br></div><div><br></div></div></div></div></div></div></div>