mirror of
https://github.com/Ryujinx/libsoundio.git
synced 2025-01-03 14:15:47 +00:00
Merge pull request #74 from michaelmaltese/patch-1
WASAPI: use `check_include_file` instead of 'find_path` in CMake
This commit is contained in:
commit
a8209b6ffd
|
@ -3,13 +3,13 @@
|
||||||
# See http://opensource.org/licenses/MIT
|
# See http://opensource.org/licenses/MIT
|
||||||
|
|
||||||
# WASAPI_FOUND
|
# WASAPI_FOUND
|
||||||
# WASAPI_INCLUDE_DIR
|
# AUDIOCLIENT_H
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
find_path(WASAPI_INCLUDE_DIR NAMES audioclient.h)
|
include(CheckIncludeFile)
|
||||||
|
check_include_file(audioclient.h AUDIOCLIENT_H)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include(FindPackageHandleStandardArgs)
|
||||||
find_package_handle_standard_args(WASAPI DEFAULT_MSG WASAPI_INCLUDE_DIR)
|
find_package_handle_standard_args(WASAPI DEFAULT_MSG AUDIOCLIENT_H)
|
||||||
|
mark_as_advanced(AUDIOCLIENT_H)
|
||||||
mark_as_advanced(WASAPI_INCLUDE_DIR)
|
|
||||||
|
|
Loading…
Reference in a new issue