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.
This commit is contained in:
James 2016-07-20 16:47:44 -07:00 committed by GitHub
parent 7469bee058
commit 81cd9e54e9

View file

@ -5,11 +5,10 @@
# WASAPI_FOUND # WASAPI_FOUND
# AUDIOCLIENT_H # AUDIOCLIENT_H
if (WIN32) if(WIN32)
include(CheckIncludeFile) include(CheckIncludeFile)
check_include_file(audioclient.h AUDIOCLIENT_H) check_include_file(audioclient.h AUDIOCLIENT_H)
endif() endif()
include(FindPackageHandleStandardArgs) include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(WASAPI DEFAULT_MSG AUDIOCLIENT_H) find_package_handle_standard_args(WASAPI DEFAULT_MSG AUDIOCLIENT_H)
mark_as_advanced(AUDIOCLIENT_H)