On Monday, July 01, 2013 11:11:58 AM Brad King wrote:
> On 7/1/2013 10:08 AM, Stephen Kelly wrote:
> > What path actually should be in the IMPORTED_LOCATION in order for the
> > framework to be handled correctly?
> 
> I don't remember for sure off the top of my head, but I think that
> the automatic "-F" options work when the path is "/path/to/foo.framework"
> but IMPORTED_LOCATION wants "/path/to/foo.framework/foo".  The former
> is meant for find_* command results IIRC, and the latter was never
> meant to automatically add -F for imported targets because I didn't
> know about that feature when first working on imported frameworks.
> 
> Take the above paragraph with a grain of salt because I wrote it off
> the top of my head and haven't had a chance to look at the code.
> 
> Clinton, you refactored all of the internals for this recently.
> Can you comment, please?
> 
> Thanks,
> -Brad

With the refactor IMPORTED_LOCATION in generated export files went from
/path/to/foo.framework/foo
to
/path/to/foo.framework/Version/A/foo
That change naturally came out of the refactor.

Since for non-frameworks, the property is the location of the actual file on 
disk, it seemed this was a good change.


However, I just realized the documentation in cmTarget says 
     "For frameworks on OS X this is the location of the library file "
     "symlink just inside the framework folder.  "

-- 
Clinton Stimpson
Elemental Technologies, Inc
Computational Simulation Software, LLC
www.csimsoft.com
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to