build_environment: support for msvc2017 and newer cmake.
[blender.git] / build_files / build_environment / patches / openal.diff
1 diff -Naur external_openal_original/CMakeLists.txt external_openal/CMakeLists.txt
2 --- external_openal_original/CMakeLists.txt     2016-01-24 20:12:39 -0700
3 +++ external_openal/CMakeLists.txt      2018-06-02 12:16:52 -0600
4 @@ -885,7 +885,8 @@
5  OPTION(ALSOFT_REQUIRE_MMDEVAPI "Require MMDevApi backend" OFF)
6  IF(HAVE_WINDOWS_H)
7      # Check MMSystem backend
8 -    CHECK_INCLUDE_FILES("windows.h;mmsystem.h" HAVE_MMSYSTEM_H -D_WIN32_WINNT=0x0502)
9 +    set(CMAKE_REQUIRED_FLAGS "-D_WIN32_WINNT=0x0502")
10 +    CHECK_INCLUDE_FILES("windows.h;mmsystem.h" HAVE_MMSYSTEM_H)
11      IF(HAVE_MMSYSTEM_H)
12          CHECK_SHARED_FUNCTION_EXISTS(waveOutOpen "windows.h;mmsystem.h" winmm "" HAVE_LIBWINMM)
13          IF(HAVE_LIBWINMM)