diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 10d278d7..138c6d1d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -131,7 +131,10 @@ ENDIF() # Add definitions, compiler switches, etc. -INCLUDE_DIRECTORIES("include" "${OpenAL_BINARY_DIR}") +INCLUDE_DIRECTORIES("${OpenAL_SOURCE_DIR}/include" "${OpenAL_BINARY_DIR}") +IF(CMAKE_VERSION VERSION_LESS "2.8.8") + INCLUDE_DIRECTORIES("${OpenAL_SOURCE_DIR}/OpenAL32/Include") +ENDIF() IF(NOT CMAKE_BUILD_TYPE) SET(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING @@ -773,6 +776,9 @@ IF(ALSOFT_EXAMPLES) FIND_PACKAGE(SDL) IF(SDL_FOUND) FIND_PACKAGE(SDL_sound) + IF(CMAKE_VERSION VERSION_LESS "2.8.8") + INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR} ${SDL_SOUND_INCLUDE_DIR}) + ENDIF() ENDIF() ENDIF() |