cmake_modules/FindOggVorbis.cmake
changeset 2606 ed687a8d081f
parent 2437 10e4b5fc0d93
child 2609 b67624c7d61e
equal deleted inserted replaced
2605:a40a7c90ffd8 2606:ed687a8d081f
    17 
    17 
    18 
    18 
    19 include (CheckLibraryExists)
    19 include (CheckLibraryExists)
    20 find_path(VORBIS_INCLUDE_DIR vorbis/vorbisfile.h)
    20 find_path(VORBIS_INCLUDE_DIR vorbis/vorbisfile.h)
    21 #  [koda] (for Hedgewars) added libraries with capital names for compatibility with Mac frameworks
    21 #  [koda] (for Hedgewars) added libraries with capital names for compatibility with Mac frameworks
    22 if(APPLE)
    22 
    23 set(CMAKE_FIND_FRAMEWORK "FIRST")
       
    24 endif(APPLE)
       
    25 find_library(OGG_LIBRARY NAMES ogg Ogg)
    23 find_library(OGG_LIBRARY NAMES ogg Ogg)
    26 find_library(VORBIS_LIBRARY NAMES vorbis Vorbis)
    24 find_library(VORBIS_LIBRARY NAMES vorbis Vorbis)
    27 find_library(VORBISFILE_LIBRARY NAMES vorbisfile Vorbis)
    25 find_library(VORBISFILE_LIBRARY NAMES vorbisfile Vorbis)
    28 
    26 
    29 if (OGG_LIBRARY AND VORBIS_LIBRARY AND VORBISFILE_LIBRARY)
    27 if (OGG_LIBRARY AND VORBIS_LIBRARY AND VORBISFILE_LIBRARY)