From aeeaabf84da0e10e6173aa10cb273e8b199cf9d1 Mon Sep 17 00:00:00 2001 From: Armin Weatherwax Date: Tue, 17 May 2011 12:51:04 +0200 Subject: Linux64 fix linking and packaging of the new ogg/vorbis libs --- linden/indra/cmake/Audio.cmake | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'linden/indra/cmake') diff --git a/linden/indra/cmake/Audio.cmake b/linden/indra/cmake/Audio.cmake index d23bc2f..10d11bb 100644 --- a/linden/indra/cmake/Audio.cmake +++ b/linden/indra/cmake/Audio.cmake @@ -32,6 +32,12 @@ else (STANDALONE) set(VORBISENC_LIBRARIES vorbisenc) set(VORBISFILE_LIBRARIES vorbisfile) endif (WINDOWS) + if(LINUX AND ${ARCH} STREQUAL "x86_64") + set(VORBIS_LIBRARY_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib) + set(VORBISENC_LIBRARY_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib) + set(VORBISFILE_LIBRARY_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib) + set(OGG_LIBRARY_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib) + endif(LINUX AND ${ARCH} STREQUAL "x86_64") endif (STANDALONE) link_directories( @@ -40,3 +46,13 @@ link_directories( ${VORBISFILE_LIBRARY_DIRS} ${OGG_LIBRARY_DIRS} ) + +if(NOT vorbis_link_msg) + set(vorbis_link_msg ON CACHE BOOL "ogg vorbis linked from:\n") + message("ogg vorbis linked from:\n" + ${VORBIS_LIBRARY_DIRS} "\n" + ${VORBISENC_LIBRARY_DIRS} "\n" + ${VORBISFILE_LIBRARY_DIRS} "\n" + ${OGG_LIBRARY_DIRS} "\n" + ) +endif(NOT vorbis_link_msg) -- cgit v1.1