From faf35fabf9940fcc1534da889c0e9961a0c86d59 Mon Sep 17 00:00:00 2001 From: Valient Gough Date: Tue, 16 Jun 2015 20:38:42 -0700 Subject: [PATCH] check xopt args quietly --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8fc5690..c011425 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,11 +47,15 @@ check_include_file_cxx (tr1/unordered_set HAVE_TR1_UNORDERED_SET) check_include_file_cxx (tr1/tuple HAVE_TR1_TUPLE) # Check if xattr functions take extra arguments, as they do on OSX. +# Output error is misleading, so do this test quietly. include (CheckCXXSourceCompiles) +set(CMAKE_REQUIRED_QUIET_SAVE ${CMAKE_REQUIRED_QUIET}) +set (CMAKE_REQUIRED_QUIET True) check_cxx_source_compiles ("#include #include int main() { getxattr(0,0,0,0,0,0); return 1; } " XATTR_ADD_OPT) +set (CMAKE_REQUIRED_QUIET ${CMAKE_REQUIRED_QUIET_SAVE}) # Check if we have lchmod. include (CheckFuncs)