aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/OPENAL.cmake
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-10-08 23:00:04 -0700
committerMcCabe Maxsted2010-10-08 23:00:04 -0700
commitd946bcb0b6f47f8520f456497d0af2e950cc0924 (patch)
tree4986f5a6d1c16d98fecd3f463a95a0f4e6aaba8c /linden/indra/cmake/OPENAL.cmake
parentChanged version to Experimental 2010.10.06-hotfix (diff)
parentMerge branch 'weekly-rebase' into weekly (diff)
downloadmeta-impy-d946bcb0b6f47f8520f456497d0af2e950cc0924.zip
meta-impy-d946bcb0b6f47f8520f456497d0af2e950cc0924.tar.gz
meta-impy-d946bcb0b6f47f8520f456497d0af2e950cc0924.tar.bz2
meta-impy-d946bcb0b6f47f8520f456497d0af2e950cc0924.tar.xz
Merge branch 'weekly-next' into weekly
Diffstat (limited to 'linden/indra/cmake/OPENAL.cmake')
-rw-r--r--linden/indra/cmake/OPENAL.cmake14
1 files changed, 12 insertions, 2 deletions
diff --git a/linden/indra/cmake/OPENAL.cmake b/linden/indra/cmake/OPENAL.cmake
index 4f0e0cc..b9efd57 100644
--- a/linden/indra/cmake/OPENAL.cmake
+++ b/linden/indra/cmake/OPENAL.cmake
@@ -2,11 +2,21 @@
2 2
3include(Variables) 3include(Variables)
4include(Linking) 4include(Linking)
5include(FindPkgConfig)
5 6
6set(OPENAL ON CACHE BOOL "Enable OpenAL") 7set(OPENAL ON CACHE BOOL "Enable OpenAL")
7 8
9# If STANDALONE but NOT PKG_CONFIG_FOUND we should fail,
10# but why try to find it as prebuilt?
11if (OPENAL AND STANDALONE AND PKG_CONFIG_FOUND)
8 12
9if (OPENAL) 13 # This module defines
14 # OPENAL_INCLUDE_DIRS
15 # OPENAL_LIBRARIES
16 # OPENAL_FOUND
17 pkg_check_modules(OPENAL REQUIRED freealut) # freealut links with openal.
18
19elseif (OPENAL)
10 20
11 # message(STATUS "Building with OpenAL audio support") 21 # message(STATUS "Building with OpenAL audio support")
12 22
@@ -110,4 +120,4 @@ if (OPENAL)
110 "Found OpenAL and ALUT libraries successfully" 120 "Found OpenAL and ALUT libraries successfully"
111 ) 121 )
112 122
113endif (OPENAL) 123endif (OPENAL AND STANDALONE AND PKG_CONFIG_FOUND)