summaryrefslogtreecommitdiffstats
path: root/Help/manual
diff options
context:
space:
mode:
authorNils Gladitz <nilsgladitz@gmail.com>2017-04-04 21:28:25 (GMT)
committerNils Gladitz <nilsgladitz@gmail.com>2017-04-04 21:28:25 (GMT)
commit3ecbe76e60293275b7d6753d551fb003fceb2cab (patch)
tree15b473190aae0b14e450a86935d8082917ace9eb /Help/manual
parent1180fdb6565dcc5f94930a399feed803e7871e46 (diff)
downloadCMake-3ecbe76e60293275b7d6753d551fb003fceb2cab.zip
CMake-3ecbe76e60293275b7d6753d551fb003fceb2cab.tar.gz
CMake-3ecbe76e60293275b7d6753d551fb003fceb2cab.tar.bz2
Help: Fix error in $<COMPILE_LANGUAGE:lang> example
Diffstat (limited to 'Help/manual')
-rw-r--r--Help/manual/cmake-generator-expressions.7.rst2
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 645be1d..3eac45f 100644
--- a/Help/manual/cmake-generator-expressions.7.rst
+++ b/Help/manual/cmake-generator-expressions.7.rst
@@ -117,7 +117,7 @@ Available logical expressions are:
.. code-block:: cmake
add_library(myapp_c foo.c)
- add_library(myapp_cxx foo.c)
+ add_library(myapp_cxx bar.cpp)
target_compile_options(myapp_cxx PUBLIC -fno-exceptions)
add_executable(myapp main.cpp)
target_link_libraries(myapp myapp_c myapp_cxx)