summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2010-04-17 06:32:19 (GMT)
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2010-04-17 09:07:32 (GMT)
commit962944361660ccc0cd0075ff4a94c82eb207265e (patch)
treeea2d348c0fdc379328a2306d42d6ee6a6077e8df /Modules
parent5abed16cc23501c35fd679a87905c04ffd9ae6c4 (diff)
downloadCMake-962944361660ccc0cd0075ff4a94c82eb207265e.zip
CMake-962944361660ccc0cd0075ff4a94c82eb207265e.tar.gz
CMake-962944361660ccc0cd0075ff4a94c82eb207265e.tar.bz2
FindQuickTime: use find_package_handle_standard_args()
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindQuickTime.cmake10
1 files changed, 4 insertions, 6 deletions
diff --git a/Modules/FindQuickTime.cmake b/Modules/FindQuickTime.cmake
index aa13ae9..f693543 100644
--- a/Modules/FindQuickTime.cmake
+++ b/Modules/FindQuickTime.cmake
@@ -41,9 +41,7 @@ ELSE(APPLE)
)
ENDIF(APPLE)
-SET(QUICKTIME_FOUND "NO")
-IF(QUICKTIME_LIBRARY AND QUICKTIME_INCLUDE_DIR)
- SET(QUICKTIME_FOUND "YES")
-ENDIF(QUICKTIME_LIBRARY AND QUICKTIME_INCLUDE_DIR)
-
-
+# handle the QUIETLY and REQUIRED arguments and set QUICKTIME_FOUND to TRUE if
+# all listed variables are TRUE
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(QuickTime DEFAULT_MSG QUICKTIME_LIBRARY QUICKTIME_INCLUDE_DIR)