build_environment: support for msvc2017 and newer cmake.
[blender.git] / build_files / build_environment / cmake / openal.cmake
index 3331361bfbc97ae1b0d330c519a2c352f4623b1c..2af530069a5b05555ef319f82947b8d889d050cb 100644 (file)
@@ -39,5 +39,6 @@ if(BUILD_MODE STREQUAL Release)
                PREFIX ${BUILD_DIR}/openal
                CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${LIBDIR}/openal ${DEFAULT_CMAKE_FLAGS} ${OPENAL_EXTRA_ARGS}
                INSTALL_DIR ${LIBDIR}/openal
+               PATCH_COMMAND ${PATCH_CMD} -p 1 -d ${BUILD_DIR}/openal/src/external_openal < ${PATCH_DIR}/openal.diff 
        )
 endif()