diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-09-28 15:38:11 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2022-10-03 15:59:16 +0300 |
commit | 77c9a5e26fcad5a386f1688357ccba0de8fb282a (patch) | |
tree | 62121c515a602698bcb691261d0344b9c5d034ea /build_files/cmake | |
parent | 76a3e8e2356e71a6d1b7fac343f081b85003aedd (diff) |
Fix macOS cmake warning about missing OpenAL, after Python module changes
Diffstat (limited to 'build_files/cmake')
-rw-r--r-- | build_files/cmake/platform/platform_apple.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build_files/cmake/platform/platform_apple.cmake b/build_files/cmake/platform/platform_apple.cmake index 27fcaf823e8..2d1803ec376 100644 --- a/build_files/cmake/platform/platform_apple.cmake +++ b/build_files/cmake/platform/platform_apple.cmake @@ -36,10 +36,6 @@ endmacro() # ------------------------------------------------------------------------ # Find system provided libraries. -# Avoid searching for headers since this would otherwise override our lib -# directory as well as PYTHON_ROOT_DIR. -set(CMAKE_FIND_FRAMEWORK NEVER) - # Find system ZLIB, not the pre-compiled one supplied with OpenCollada. set(ZLIB_ROOT /usr) find_package(ZLIB REQUIRED) @@ -79,6 +75,10 @@ if(NOT EXISTS "${LIBDIR}/") message(FATAL_ERROR "Mac OSX requires pre-compiled libs at: '${LIBDIR}'") endif() +# Avoid searching for headers since this would otherwise override our lib +# directory as well as PYTHON_ROOT_DIR. +set(CMAKE_FIND_FRAMEWORK NEVER) + # Optionally use system Python if PYTHON_ROOT_DIR is specified. if(WITH_PYTHON AND (WITH_PYTHON_MODULE AND PYTHON_ROOT_DIR)) find_package(PythonLibsUnix REQUIRED) |