Skip to content

Commit 2592ef9

Browse files
committed
Support custom docdir
Allow user to specify a custom location for docs. On some Linux distributions the docs are at /usr/share/doc/pkg-version rather then the unversioned dir. Signed-off-by: Justin Lecher <[email protected]>
1 parent bc99fa6 commit 2592ef9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
find_package(LATEX)
2+
3+
if (NOT DOCDIR)
4+
set(DOCDIR share/doc/flann)
5+
endif ()
26

37
if (EXISTS ${PDFLATEX_COMPILER} AND EXISTS ${BIBTEX_COMPILER})
48
include(${PROJECT_SOURCE_DIR}/cmake/UseLATEX.cmake)
@@ -14,6 +18,6 @@ endif()
1418

1519
install(
1620
FILES manual.pdf
17-
DESTINATION share/doc/flann
21+
DESTINATION ${DOCDIR}
1822
OPTIONAL
1923
)

0 commit comments

Comments
 (0)