Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jinsuoliu opened this issue Aug 29, 2019 · 1 comment

Comments

@jinsuoliu
Copy link

jinsuoliu commented Aug 29, 2019

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!


@HardlineStudios
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants