[CMake] rules for writing cmake modules

Filipe Sousa filipe at ipb.pt
Sun Jan 1 19:41:40 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alexander Neundorf wrote:

> Should it print some status messages on success/failure ? 

In my own modules I use MESSAGE(STATUS when LibFOO_FIND_QUIETLY is not set

> Should it MESSAGE(FATAL_ERROR "Foo not found") on failure ? 

and MESSAGE(FATAL_ERROR when LibFOO_FIND_REQUIRED is defined. That way
FIND_PACKAGE(LibFOO QUIET REQUIRED) only shows fatal errors.

LibFOO_FIND_QUIETLY and LibFOO_FIND_REQUIRED are variables created
automatically by FIND_PACKAGE

- --
Filipe Sousa
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDuHbEbQdNYqwwwCwRAk+uAJ9UJeTgVZmAqxIE1YGQ2uHeghwz7ACfWAB2
qrcfGCA/iHSxpGR1u2EC+2A=
=DKjr
-----END PGP SIGNATURE-----


More information about the CMake mailing list