[CMake] link_libraries vs target_link_libraries
Hendrik Sattler
post at hendrik-sattler.de
Wed Nov 12 12:59:32 EST 2008
Am Wednesday 12 November 2008 17:03:04 schrieb Fernando Cacciola:
> Hi Hendrik,
>
> >>> But it is not backwards-compatible and will fail to link on the new
> >>> version while it worked fine on the old version.
> >>
> >> Why??
> >
> > Because if the ${FOO_USE_FILE} doesn't do what it always does (globally
> > adding this stuff), you _have_ to insert the new macro call to make it
> > compile again. OTOH, this macro call will fail on the old version
> > because it doesn't exist.
> > (Assumed that FindFoo.cmake and ${FOO_USE_FILE} are shipped with cmake)
>
> So you where referring to some existing UseFOO then?
>
> UseCGAL doesn't really exist yet (we haven't released it), so at this
> point I can do the right thing :)
Sure but if this stuff is to be consistent with the other modules doing the
USE_FILE thing, then this is a problem.
HS
More information about the CMake
mailing list