[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdemultimedia/cmake/modules
From:       Laurent Montel <montel () kde ! org>
Date:       2007-04-05 12:31:45
Message-ID: 1175776305.637495.10720.nullmailer () svn ! kde ! org
[Download RAW message or body]

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)
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic