[CMake] How to tell if a project is an ExternalProject

Stefan Eilemann eilemann at gmail.com
Wed Nov 7 03:10:21 EST 2012


On 6. Nov 2012, at 23:43, "Marshall, Rob" <robm at qti.qualcomm.com> wrote:

> I am trying to write a snippet that will determine if a library is an external project.

We're using
    get_target_property(_dep_check ${package} _EP_IS_EXTERNAL_PROJECT)
    if(_dep_check EQUAL 1)
        ...

Not sure if this is a blessed way of doing so.


Cheers,

Stefan.
-- 
http://www.eyescale.ch
http://www.equalizergraphics.com
http://www.linkedin.com/in/eilemann





More information about the CMake mailing list