diff options
author | Alan W. Irwin <irwin@beluga.phys.uvic.ca> | 2019-10-21 14:21:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-10-21 14:25:41 (GMT) |
commit | c684db4ea8d4763a7a70582d24c4bf5ac14cfea4 (patch) | |
tree | de7de46be627e53630db64f8664c2a1313186466 /Help | |
parent | 6fb747a01c27a2226fe4cbf77bc19e6d21286f81 (diff) | |
download | CMake-c684db4ea8d4763a7a70582d24c4bf5ac14cfea4.zip CMake-c684db4ea8d4763a7a70582d24c4bf5ac14cfea4.tar.gz CMake-c684db4ea8d4763a7a70582d24c4bf5ac14cfea4.tar.bz2 |
Help: Fix COMPILE_LANG_AND_ID genex example
Fix the `COMPILE_LANGUAGE/CXX_COMPILER_ID` variant of the example to
have the same meaning as the `COMPILE_LANG_AND_ID` variant. The
inconsistency was introduced by commit 808b818063 (Genex: CompileLang
and CompileLangAndId now match against a list of ids, 2019-05-30,
v3.15.0-rc1~11^2~1).
Fixes: #19862
Diffstat (limited to 'Help')
-rw-r--r-- | Help/manual/cmake-generator-expressions.7.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst index c0449fb..e970379 100644 --- a/Help/manual/cmake-generator-expressions.7.rst +++ b/Help/manual/cmake-generator-expressions.7.rst @@ -195,7 +195,7 @@ Variable Queries .. code-block:: cmake target_compile_definitions(myapp - PRIVATE $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:Clang>>:COMPILING_CXX_WITH_CLANG> + PRIVATE $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:AppleClang,Clang>>:COMPILING_CXX_WITH_CLANG> $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:Intel>>:COMPILING_CXX_WITH_INTEL> $<$<AND:$<COMPILE_LANGUAGE:C>,$<C_COMPILER_ID:Clang>>:COMPILING_C_WITH_CLANG> ) |