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

2012-11-07 Thread Marshall, Rob
Thanks Stefan, That is a big help. Rob -Original Message- From: Stefan Eilemann [mailto:eilem...@gmail.com] Sent: Wednesday, November 07, 2012 12:10 AM To: Marshall, Rob Cc: cmake@cmake.org Subject: Re: [CMake] How to tell if a project is an ExternalProject On 6. Nov 2012, at 23:43

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

2012-11-07 Thread David Cole
On Wed, Nov 7, 2012 at 3:10 AM, Stefan Eilemann wrote: > > On 6. Nov 2012, at 23:43, "Marshall, Rob" 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) >

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

2012-11-07 Thread Stefan Eilemann
On 6. Nov 2012, at 23:43, "Marshall, Rob" 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

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

2012-11-06 Thread Marshall, Rob
Hi, I am trying to write a snippet that will determine if a library is an external project. So I wrote some code such as: ExternalProject_Get_Property( ${package} INSTALL_DIR ) To see if INSTALL_DIR gets populated. In the case where the ${package} doesn't exist as an ExternalProject CMAKE d