libsoundio/cmake/FindWASAPI.cmake
James 81cd9e54e9 WASAPI: Remove useless statement in CMake module
AUDIOCLIENT_H, as declared here, is not an external cached variable, so calling mark_as_advanced() has no apparent effect (does not enable user to modify value, even in advanced mode). Even if it were cached, its value (success/failure at finding audioclient.h) should not be edited by the user.

Also modified whitespace to be more consistent with that found in CMakeLists.txt.
2016-07-20 16:47:44 -07:00

15 lines
346 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)