Make sure SDL_sound was found before setting the includes
This commit is contained in:
parent
62dd5f33b2
commit
a375104826
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user