mirror of
https://github.com/Ryujinx/libsoundio.git
synced 2024-12-22 23:15:32 +00:00
e1c55d807b
# Current issue: When attempting to compile under MSVC (#49), CMake can't find the WASAPI headers. I'm running Windows 10, Visual Studio Community 2015, and the latest SDK. # Proposed fix: Use `check_include_file` instead of `find_path`, which seems more semantically correct anyways.
16 lines
375 B
CMake
16 lines
375 B
CMake
# Copyright (c) 2015 Andrew Kelley
|
|
# This file is MIT licensed.
|
|
# See http://opensource.org/licenses/MIT
|
|
|
|
# WASAPI_FOUND
|
|
# AUDIOCLIENT_H
|
|
|
|
if (WIN32)
|
|
include(CheckIncludeFile)
|
|
check_include_file(audioclient.h AUDIOCLIENT_H)
|
|
endif()
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(WASAPI DEFAULT_MSG AUDIOCLIENT_H)
|
|
mark_as_advanced(AUDIOCLIENT_H)
|