From: Brad K. <bra...@ki...> - 2009-06-12 15:20:22
|
Ian Scott wrote: > The QUIET suppression doesn't propagate correctly > > FIND_PACKAGE( PNG QUIET ) > > calls FindZLIB.cmake which then doesn't suppress > "-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)" This is a bug in FindZLIB. Please report it to http://www.cmake.org/Bug > I've got a fiddle > > SET( ZLIB_FIND_QUIETLY "YES" ) > FIND_PACKAGE( PNG QUIET ) > UNSET( ZLIB_FIND_QUIETLY ) The "unset" command is not in a release of CMake. Just use SET(ZLIB_FIND_QUIETLY) -Brad |