Minor modifications in FindGLEW and FindSndFile

This commit is contained in:
Laurent Gomila 2011-05-14 22:17:47 +02:00
parent 7498b5bc27
commit 3490d57344
2 changed files with 4 additions and 2 deletions

View File

@ -60,3 +60,6 @@ IF (GLEW_INCLUDE_PATH AND GLEW_LIBRARY)
SET(GLEW_FOUND "YES") SET(GLEW_FOUND "YES")
ENDIF (GLEW_INCLUDE_PATH AND GLEW_LIBRARY) ENDIF (GLEW_INCLUDE_PATH AND GLEW_LIBRARY)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(GLEW DEFAULT_MSG GLEW_LIBRARY GLEW_INCLUDE_PATH)

View File

@ -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 # Handle the QUIETLY and REQUIRED arguments and set SNDFILE_FOUND to TRUE if
# all listed variables are TRUE. # all listed variables are TRUE.
include(FindPackageHandleStandardArgs) include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(SNDFILE DEFAULT_MSG find_package_handle_standard_args(SNDFILE DEFAULT_MSG SNDFILE_LIBRARY SNDFILE_INCLUDE_DIR)
SNDFILE_INCLUDE_DIR SNDFILE_LIBRARY)
if(SNDFILE_FOUND) if(SNDFILE_FOUND)
set(SNDFILE_LIBRARIES ${SNDFILE_LIBRARY}) set(SNDFILE_LIBRARIES ${SNDFILE_LIBRARY})