diff options
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() |