diff options
author | Chris Robinson <[email protected]> | 2013-06-25 03:53:48 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-06-25 03:53:48 -0700 |
commit | a375104826d611cd4f65b53aca8c204a1395091e (patch) | |
tree | a7bd1a7b9321aefa076b9a1b20f528c0d1e32c7f /CMakeLists.txt | |
parent | 62dd5f33b22121604423e030d003ecccbf414181 (diff) |
Make sure SDL_sound was found before setting the includes
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 138c6d1d..41519975 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() |