[CMake] how to modify scope of imported library

Andreas Pakulat apaku at gmx.de
Fri Mar 9 02:42:15 EST 2012


On 08.03.12 19:24:00, Cong Ma wrote:
> Hi,
> 
> Imported library has scope in the directory in which it is created and
> below.
> 
> If I want to use this library in parent scope, what should I do?

Add the imported library in the top-level cmake file, not a
subdirectory.

Andreas



More information about the CMake mailing list