SVN commit 650777 by mlaurent: Fix module when required M +10 -6 FindTheora.cmake --- trunk/KDE/kdemultimedia/cmake/modules/FindTheora.cmake #650776:650777 @@ -40,12 +40,16 @@ set(THEORA_LIBRARY ${THEORA_LIB_LIBRARIES} ${THEORA_OGG_LIBRARIES} ${THEORA_VORBIS_LIBRARIES}) endif(THEORA_LIB_LIBRARIES AND THEORA_VORBIS_LIBRARIES AND THEORA_OGG_LIBRARIES) -if(THEORA_INCLUDE_DIR AND THEORA_LIBRARY) - MESSAGE( STATUS "theora found: includes in ${THEORA_INCLUDE_DIR}, library in ${THEORA_LIBRARY}") - set(THEORA_FOUND TRUE) -else(THEORA_INCLUDE_DIR AND THEORA_LIBRARY) - MESSAGE( STATUS "theora not found") -endif(THEORA_INCLUDE_DIR AND THEORA_LIBRARY) +if (THEORA_FOUND) + if (NOT Theora_FIND_QUIETLY) + MESSAGE( STATUS "theora found: includes in ${THEORA_INCLUDE_DIR}, library in ${THEORA_LIBRARY}") + endif (NOT Theora_FIND_QUIETLY) +else (THEORA_FOUND) + if (Theora_FIND_REQUIRED) + MESSAGE( STATUS "theora not found") + endif (Theora_FIND_REQUIRED) +endif (THEORA_FOUND) + MARK_AS_ADVANCED(THEORA_INCLUDE_DIR THEORA_LIBRARY)