[cmake-developers] Depends information in buildsystem files
Stephen Kelly
steveire at gmail.com
Mon Feb 11 15:38:35 EST 2013
Brad King wrote:
>
>> try_compile(TCRESULT
>> "${CMAKE_CURRENT_BINARY_DIR}/tcresultbindir"
>> "tcresult_src.cpp"
>> TARGETS foo bar
>> LINK_LIBRARIES foo bar
>> )
>
> No, for the source form the LINK_LIBRARIES would automatically
> handle targets. I just don't want to try doing it with the
> -DLINK_LIBRARIES= options.
That means TARGETS is already born with a shelf-live. It will be obsoleted
by LINK_LIBRARIES, right?
Should we create LINK_LIBRARIES now instead, use it in the macros by
directly passing CMAKE_REQUIRED_LIBRARIES to it, and implement the ignoring
of -DLINK_LIBRARIES in that case?
Thanks,
Steve.
More information about the cmake-developers
mailing list