Skip to content

Commit

Permalink
CMakeLists: simplify openal module inclusion.
Browse files Browse the repository at this point in the history
  • Loading branch information
remeh committed Dec 12, 2016
1 parent 62131fb commit 205fba0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ ENDIF()

IF($ENV{MACOS})
INCLUDE(FindOpenal)
ELSE()
PKG_SEARCH_MODULE(openal REQUIRED openal)
ENDIF()

PKG_SEARCH_MODULE(SDL2 REQUIRED sdl2)
Expand All @@ -85,10 +87,6 @@ PKG_SEARCH_MODULE(libavformat REQUIRED libavformat)
PKG_SEARCH_MODULE(libavutil REQUIRED libavutil)
PKG_CHECK_MODULES(GLIB REQUIRED glib-2.0>=2.0.0)

IF(NOT $ENV{MACOS})
PKG_SEARCH_MODULE(openal REQUIRED openal)
ENDIF()

include_directories(
${SDL2_INCLUDE_DIRS}
${SDL2_ttf_INCLUDE_DIRS}
Expand Down

0 comments on commit 205fba0

Please sign in to comment.