[CMake] IF(COMMAND) to test INSTALL(EXPORT)

Alexander Neundorf a.neundorf-work at gmx.net
Wed Oct 1 19:36:19 EDT 2008


On Tuesday 30 September 2008, Mathieu Malaterre wrote:
> Hi there,
>
>   I would like to know if the target system support the
> INSTALL(EXPORT) signature. As far as I understand IF(COMMAND) only
> check the command but not the signature, right ?

Yes.
You could check for version >= 2.6.0.
Or if export() exists, which is similar but for the buildtree.

Alex


More information about the CMake mailing list