GPlayEngine icon indicating copy to clipboard operation
GPlayEngine copied to clipboard

Help:I use cmake (both 3.1.15 and 3.15.2) building third-party libraries is incomplete

Open jinsuoliu opened this issue 5 years ago • 1 comments

When I use cmake building third-party libraries with the command :cmake -G ""Visual Studio 15 2017 Win64" -D CMAKE_BUILD_TYPE=Debug .. on Win10 64bit,that show the Error Message as follows:


CMake Error at C:/Program Files/CMake/share/cmake-3.15/Modules/CheckIncludeFiles.cmake:68 (message): Unknown arguments:

-D_WIN32_WINNT=0x0502

Call Stack (most recent call first): openal/CMakeLists.txt:968 (CHECK_INCLUDE_FILES)

-- Configuring incomplete, errors occurred!


jinsuoliu avatar Aug 29 '19 04:08 jinsuoliu

Looks like it's related to the build of the OpenAL library. The culprit is line 968 in GPlayEngine\thirdparty\openal\CMakeLists.txt

CHECK_INCLUDE_FILES("windows.h;mmsystem.h" HAVE_MMSYSTEM_H -D_WIN32_WINNT=0x0502)

I just removed ** -D_WIN32_WINNT=0x0502** and it seems to compile.

HardlineStudios avatar Mar 16 '20 17:03 HardlineStudios