Make sure SDL_sound was found before setting the includes

This commit is contained in:
Chris Robinson 2013-06-25 03:53:48 -07:00
parent 62dd5f33b2
commit a375104826

View File

@ -776,7 +776,7 @@ IF(ALSOFT_EXAMPLES)
FIND_PACKAGE(SDL)
IF(SDL_FOUND)
FIND_PACKAGE(SDL_sound)
IF(CMAKE_VERSION VERSION_LESS "2.8.8")
IF(SDL_SOUND_FOUND AND CMAKE_VERSION VERSION_LESS "2.8.8")
INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR} ${SDL_SOUND_INCLUDE_DIR})
ENDIF()
ENDIF()