Merge branch 'master' into blender2.8
[blender.git] / build_files / cmake / platform / platform_apple.cmake
index faed0cf25fc48c0cd0c9fbc0a4d58fb40f222bd0..047b1fa3b5b9212633e4db52bd17184f3a3a6726 100644 (file)
@@ -23,6 +23,8 @@
 
 # Libraries configuration for Apple.
 
+set(MACOSX_DEPLOYMENT_TARGET "10.9")
+
 macro(find_package_wrapper)
 # do nothing, just satisfy the macro
 endmacro()
@@ -43,7 +45,7 @@ if(WITH_OPENAL)
        find_package(OpenAL)
        if(OPENAL_FOUND)
                set(WITH_OPENAL ON)
-               set(OPENAL_INCLUDE_DIR "${LIBDIR}/openal/include")
+               set(OPENAL_INCLUDE_DIR "${LIBDIR}/openal/include/AL")
        else()
                set(WITH_OPENAL OFF)
        endif()
@@ -79,10 +81,10 @@ if(WITH_JACK)
 endif()
 
 if(WITH_CODEC_SNDFILE)
-       set(SNDFILE ${LIBDIR}/sndfile)
-       set(SNDFILE_INCLUDE_DIRS ${SNDFILE}/include)
-       set(SNDFILE_LIBRARIES sndfile FLAC ogg vorbis vorbisenc)
-       set(SNDFILE_LIBPATH ${SNDFILE}/lib ${LIBDIR}/ffmpeg/lib)  # TODO, deprecate
+       set(LIBSNDFILE ${LIBDIR}/sndfile)
+       set(LIBSNDFILE_INCLUDE_DIRS ${LIBSNDFILE}/include)
+       set(LIBSNDFILE_LIBRARIES sndfile FLAC ogg vorbis vorbisenc)
+       set(LIBSNDFILE_LIBPATH ${LIBSNDFILE}/lib ${LIBDIR}/ffmpeg/lib)  # TODO, deprecate
 endif()
 
 if(WITH_PYTHON)