diff options
author | Brad King <brad.king@kitware.com> | 2014-06-16 12:54:48 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-06-16 12:54:48 (GMT) |
commit | e2789429aaa18dd7aef4858fb2702bf66d50aa6e (patch) | |
tree | 90c741f584bf1f4316f667666450638366da909d /Help | |
parent | 0b028c6f0a44d3b0956170b39fbe921eb8d13f42 (diff) | |
parent | f0a0f3dcb42ee249d7ba0c09e674900adfb9ea2e (diff) | |
download | CMake-e2789429aaa18dd7aef4858fb2702bf66d50aa6e.zip CMake-e2789429aaa18dd7aef4858fb2702bf66d50aa6e.tar.gz CMake-e2789429aaa18dd7aef4858fb2702bf66d50aa6e.tar.bz2 |
Merge topic 'features-cleanups'
f0a0f3dc WCDH: Fix compiler id test for compatibility macros.
627ad96b Project: Detect other compilers before detecting Clang.
bc950169 WCDH: Remove noise from generated defines.
eecd93fc Features: Escape the COMPILE_OPTIONS for dialects.
Diffstat (limited to 'Help')
-rw-r--r-- | Help/manual/cmake-compile-features.7.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Help/manual/cmake-compile-features.7.rst b/Help/manual/cmake-compile-features.7.rst index d4bbecc..8a2fe30 100644 --- a/Help/manual/cmake-compile-features.7.rst +++ b/Help/manual/cmake-compile-features.7.rst @@ -166,11 +166,11 @@ symbol, and compiler support determines what it is expanded to: virtual void Execute() = 0; }; - struct Concrete Foo_CXX_FINAL { - void Execute() Foo_CXX_OVERRIDE; + struct Concrete Foo_FINAL { + void Execute() Foo_OVERRIDE; }; -In this case, ``Foo_CXX_FINAL`` will expand to ``final`` if the +In this case, ``Foo_FINAL`` will expand to ``final`` if the compiler supports the keyword, or to empty otherwise. In this use-case, the CMake code will wish to enable a particular language @@ -189,13 +189,13 @@ set to influence all following targets: cxx_final cxx_override ) - # Includes foo_compiler_detection.h and uses the Foo_DECL_CXX_FINAL symbol + # Includes foo_compiler_detection.h and uses the Foo_FINAL symbol # which will expand to 'final' if the compiler supports the requested # CXX_STANDARD. add_library(foo foo.cpp) set_property(TARGET foo PROPERTY CXX_STANDARD 11) - # Includes foo_compiler_detection.h and uses the Foo_DECL_CXX_FINAL symbol + # Includes foo_compiler_detection.h and uses the Foo_FINAL symbol # which will expand to 'final' if the compiler supports the feature, # even though CXX_STANDARD is not set explicitly. The requirement of # cxx_constexpr causes CMake to set CXX_STANDARD internally, which |