summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-01-13 15:40:49 (GMT)
committerBrad King <brad.king@kitware.com>2023-01-13 15:42:56 (GMT)
commit93696d0f2e33a3f4ccb84b4a8c25274a82204b33 (patch)
treed96d7ee6ff3be8c60105f184615ad8cd205e4c2b /Help
parente15253a94b8188520bd55825cf17b9fd285f9677 (diff)
downloadCMake-93696d0f2e33a3f4ccb84b4a8c25274a82204b33.zip
CMake-93696d0f2e33a3f4ccb84b4a8c25274a82204b33.tar.gz
CMake-93696d0f2e33a3f4ccb84b4a8c25274a82204b33.tar.bz2
Help: Restore cmake-buildsystem(7) header-only library example
Since commit 4391913133 (Add INTERFACE libraries to generated buildsystem if they have SOURCES, 2020-07-20, v3.19.0-rc1~346^2~1) the "Eigen" example in the `cmake-buildsystem(7)` manual is supposed to show a header-only library in which the headers are attached as sources to be edited in IDEs. This was accidentally broken by commit 4b25a0d512 (Help/manual: Update header-only library example, 2022-04-22, v3.24.0-rc1~220^2) when updating the example to use a `FILE_SET`. Fixes: #24319
Diffstat (limited to 'Help')
-rw-r--r--Help/manual/cmake-buildsystem.7.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Help/manual/cmake-buildsystem.7.rst b/Help/manual/cmake-buildsystem.7.rst
index bceff2d..76d24c1 100644
--- a/Help/manual/cmake-buildsystem.7.rst
+++ b/Help/manual/cmake-buildsystem.7.rst
@@ -1047,7 +1047,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