cmake/FindAudio: Do not add OpenAL_Library to Audio_LIBRARIES on mac because as a preinstalled framework it is just assumed to be present, and linked via the framework linker flag in the main CMakeLists.txt file

issue1247
Martin Plicht 2014-09-29 22:23:28 +02:00
parent e395e0741d
commit 9891ff048b
1 changed files with 4 additions and 1 deletions

View File

@ -92,7 +92,10 @@ if(Audio_TK STREQUAL "OpenAL")
set(Audio_FOUND TRUE)
set(Audio_LIBRARIES ${OpenAL_LIBRARIES} ${OggVorbis_LIBRARIES})
set(Audio_INCLUDE_DIRS ${OpenAL_INCLUDE_DIRS} ${OggVorbis_INCLUDE_DIRS})
set(Audio_LIBRARIES ${Audio_LIBRARIES} ${Alut_LIBRARIES} ${OpenAL_LIBRARY})
set(Audio_LIBRARIES ${Audio_LIBRARIES} ${Alut_LIBRARIES})
if (NOT(APPLE))
set(Audio_LIBRARIES ${Audio_LIBRARIES} ${OpenAL_LIBRARY})
endif()
set(Audio_INCLUDE_DIRS ${Audio_INCLUDE_DIRS} ${Alut_INCLUDE_DIRS})
endif()
elseif(Audio_TK STREQUAL "SDL_Mixer")