[CMake] link_libraries vs target_link_libraries

Fernando Cacciola fernando.cacciola at gmail.com
Wed Nov 12 11:03:04 EST 2008


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 :)

Fernando



More information about the CMake mailing list