Browse Source

Merge topic 'doc-header-only'

93696d0f2e Help: Restore cmake-buildsystem(7) header-only library example

Acked-by: Kitware Robot <[email protected]>
Merge-request: !8071
Brad King 2 years ago
parent
commit
fbb4886daf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Help/manual/cmake-buildsystem.7.rst

+ 1 - 1
Help/manual/cmake-buildsystem.7.rst

@@ -1049,7 +1049,7 @@ them to a header set using the :command:`target_sources` command:
 
   add_library(Eigen INTERFACE)
 
-  target_sources(Eigen INTERFACE
+  target_sources(Eigen PUBLIC
     FILE_SET HEADERS
       BASE_DIRS src
       FILES src/eigen.h src/vector.h src/matrix.h