[Cmake-commits] CMake branch, master, updated. cdc484e4a6613555b6c4d097a8bfef27a533bfe3

cmake-commits at cmake.org cmake-commits at cmake.org
Sun May 9 05:09:06 EDT 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
       via  cdc484e4a6613555b6c4d097a8bfef27a533bfe3 (commit)
      from  dedbe6fd48eb57323aa0603dc570d94bc46d08a0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=cdc484e4a6613555b6c4d097a8bfef27a533bfe3
commit cdc484e4a6613555b6c4d097a8bfef27a533bfe3
Author: Alex Neundorf <neundorf at kde.org>
Date:   Sun May 9 11:06:00 2010 +0200

    -use find_package_handle_standard_args() in FindOpenAL (#9496)
    
    Alex

diff --git a/Modules/FindOpenAL.cmake b/Modules/FindOpenAL.cmake
index b9b7078..f42a69a 100644
--- a/Modules/FindOpenAL.cmake
+++ b/Modules/FindOpenAL.cmake
@@ -95,8 +95,9 @@ FIND_LIBRARY(OPENAL_LIBRARY
 )
 
 
-SET(OPENAL_FOUND "NO")
-IF(OPENAL_LIBRARY AND OPENAL_INCLUDE_DIR)
-  SET(OPENAL_FOUND "YES")
-ENDIF(OPENAL_LIBRARY AND OPENAL_INCLUDE_DIR)
+# handle the QUIETLY and REQUIRED arguments and set OPENAL_FOUND to TRUE if
+# all listed variables are TRUE
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenAL  DEFAULT_MSG  OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
 
+MARK_AS_ADVANCED(OPENAL_LIBRARY OPENAL_INCLUDE_DIR)

-----------------------------------------------------------------------

Summary of changes:
 Modules/FindOpenAL.cmake |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list