From 81cd9e54e92e40a283f2b5da29b025fc49cad789 Mon Sep 17 00:00:00 2001 From: James Date: Wed, 20 Jul 2016 16:47:44 -0700 Subject: [PATCH] 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. --- cmake/FindWASAPI.cmake | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cmake/FindWASAPI.cmake b/cmake/FindWASAPI.cmake index 88bb9a6..2207589 100644 --- a/cmake/FindWASAPI.cmake +++ b/cmake/FindWASAPI.cmake @@ -5,11 +5,10 @@ # WASAPI_FOUND # AUDIOCLIENT_H -if (WIN32) - include(CheckIncludeFile) - check_include_file(audioclient.h 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)