From 95c705a6a90df796e08dd88759015ca0189bd689 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 19 Dec 2013 10:41:17 -0500 Subject: [PATCH] TestCXXAcceptsFlag: Update documentation (#14657) Document this module as deprecated and link to CheckCXXCompilerFlag. Fix cut-n-paste-o and format macro signature. --- Modules/TestCXXAcceptsFlag.cmake | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Modules/TestCXXAcceptsFlag.cmake b/Modules/TestCXXAcceptsFlag.cmake index 2bcbea6c3..c814187d5 100644 --- a/Modules/TestCXXAcceptsFlag.cmake +++ b/Modules/TestCXXAcceptsFlag.cmake @@ -2,16 +2,18 @@ # TestCXXAcceptsFlag # ------------------ # -# Test CXX compiler for a flag +# Deprecated. See :module:`CheckCXXCompilerFlag`. # -# Check if the CXX compiler accepts a flag +# Check if the CXX compiler accepts a flag. # -# :: +# .. code-block:: cmake # -# Macro CHECK_CXX_ACCEPTS_FLAG(FLAGS VARIABLE) - -# checks if the function exists -# FLAGS - the flags to try -# VARIABLE - variable to store the result +# CHECK_CXX_ACCEPTS_FLAG( ) +# +# ```` +# the flags to try +# ```` +# variable to store the result #============================================================================= # Copyright 2002-2009 Kitware, Inc.