From 3490d57344af611e1633a6179260ae7dfadd67b6 Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Sat, 14 May 2011 22:17:47 +0200 Subject: [PATCH] Minor modifications in FindGLEW and FindSndFile --- cmake/Modules/FindGLEW.cmake | 3 +++ cmake/Modules/FindSndfile.cmake | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cmake/Modules/FindGLEW.cmake b/cmake/Modules/FindGLEW.cmake index 9626e6121..554648791 100644 --- a/cmake/Modules/FindGLEW.cmake +++ b/cmake/Modules/FindGLEW.cmake @@ -60,3 +60,6 @@ IF (GLEW_INCLUDE_PATH AND GLEW_LIBRARY) SET(GLEW_FOUND "YES") ENDIF (GLEW_INCLUDE_PATH AND GLEW_LIBRARY) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(GLEW DEFAULT_MSG GLEW_LIBRARY GLEW_INCLUDE_PATH) diff --git a/cmake/Modules/FindSndfile.cmake b/cmake/Modules/FindSndfile.cmake index ece231d08..16c31dd94 100644 --- a/cmake/Modules/FindSndfile.cmake +++ b/cmake/Modules/FindSndfile.cmake @@ -17,8 +17,7 @@ find_library(SNDFILE_LIBRARY NAMES sndfile sndfile-1) # Handle the QUIETLY and REQUIRED arguments and set SNDFILE_FOUND to TRUE if # all listed variables are TRUE. include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(SNDFILE DEFAULT_MSG - SNDFILE_INCLUDE_DIR SNDFILE_LIBRARY) +find_package_handle_standard_args(SNDFILE DEFAULT_MSG SNDFILE_LIBRARY SNDFILE_INCLUDE_DIR) if(SNDFILE_FOUND) set(SNDFILE_LIBRARIES ${SNDFILE_LIBRARY})