Boost logo

Boost Interest :

Subject: Re: [Boost-cmake] RFC: exported targets
From: Brad King (brad.king_at_[hidden])
Date: 2009-10-29 16:31:47

troy d. straszheim wrote:
> if you link to
> boost_threads-mt-shared, for instance, with the installed exports you
> automagically get -pthread and friends, but with the noninstalled
> exports you don't. Is this expected?

It should work for both. Make sure that the export() command for a
target foo appears *after* all target_link_libraries(foo ...) calls.
The export() command writes to the file *immediately*, so any link
information not yet available will not be included.


Boost-cmake list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at