<div dir="ltr">I have CMAKE_OSX_SYSROOT defined as something:<div><br></div><div>set(CMAKE_OSX_SYSROOT "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk" CACHE LIST "OSX sysroot SDK directory" FORCE)<br>
</div><div><br></div><div>Then later I do a find_library command and it finds a library framework in /Library/Frameworks/mylib.framework</div><div><br></div><div>The cache entry for mylib has the full path to the library, but later during linking it removes the full path and instead uses the name directly:</div>
<div><br></div><div>-framework mylib</div><div><br></div><div>Unfortunately, because the -isysroot command is invoked the linker no longer looks in the standard locations. I have to use -F /Library/Frameworks -framework mylib. I can't even use -framework /Library/Frameworks/mylib.framework</div>
<div><br></div><div>Is there something I can do to make it work right?</div><div><br></div><div>Thanks,</div><div>James</div></div>