Sfoglia il codice sorgente

Merge topic 'fix-genex-example'

3ecbe76e Help: Fix error in $<COMPILE_LANGUAGE:lang> example

Acked-by: Kitware Robot <[email protected]>
Merge-request: !667
Brad King 8 anni fa
parent
commit
333ff168eb
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Help/manual/cmake-generator-expressions.7.rst

+ 1 - 1
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)