Skip to content

Commit 7952995

Browse files
Adjust Doxygen source and output paths
This removes another difference with DOCS/Doxyfile. From the CMake 3.9.6 documentation (earliest version describing doxygen_add_docs, I've updated cmake_minimum_required to match): "So that relative input paths work as expected, by default the working directory of the Doxygen command will be the current source directory (i.e. CMAKE_CURRENT_SOURCE_DIR)." Likewise for the output directory: "Set to CMAKE_CURRENT_BINARY_DIR by this module. Note that if the project provides its own value for this and it is a relative path, it will be converted to an absolute path relative to the current binary directory. This is necessary because doxygen will normally be run from a directory within the source tree so that relative source paths work as expected."
1 parent cf9b217 commit 7952995

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

CMakeLists.txt

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.6)
1+
cmake_minimum_required(VERSION 3.9)
22

33
project(LAPACK)
44

@@ -615,8 +615,8 @@ if(BUILD_HTML_DOCUMENTATION OR BUILD_MAN_DOCUMENTATION)
615615

616616
set(DOXYGEN_PROJECT_BRIEF "LAPACK: Linear Algebra PACKage")
617617
set(DOXYGEN_PROJECT_NUMBER ${LAPACK_VERSION})
618-
set(DOXYGEN_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/DOCS)
619-
set(DOXYGEN_PROJECT_LOGO ${CMAKE_CURRENT_SOURCE_DIR}/DOCS/lapack.png)
618+
set(DOXYGEN_OUTPUT_DIRECTORY DOCS)
619+
set(DOXYGEN_PROJECT_LOGO DOCS/lapack.png)
620620
set(DOXYGEN_OPTIMIZE_FOR_FORTRAN YES)
621621
set(DOXYGEN_SOURCE_BROWSER YES)
622622
set(DOXYGEN_CREATE_SUBDIRS YES)
@@ -656,13 +656,13 @@ if(BUILD_HTML_DOCUMENTATION OR BUILD_MAN_DOCUMENTATION)
656656
html
657657

658658
# Doxygen INPUT =
659-
${PROJECT_SOURCE_DIR}/BLAS
660-
${PROJECT_SOURCE_DIR}/CBLAS
661-
${PROJECT_SOURCE_DIR}/SRC
662-
${PROJECT_SOURCE_DIR}/INSTALL
663-
${PROJECT_SOURCE_DIR}/TESTING
664-
${PROJECT_SOURCE_DIR}/DOCS/groups-usr.dox
665-
${PROJECT_SOURCE_DIR}/README.md
659+
BLAS
660+
CBLAS
661+
SRC
662+
INSTALL
663+
TESTING
664+
DOCS/groups-usr.dox
665+
README.md
666666

667667
COMMENT "Generating html LAPACK documentation (it will take some time... time to grab a coffee)"
668668
)
@@ -678,12 +678,12 @@ if(BUILD_HTML_DOCUMENTATION OR BUILD_MAN_DOCUMENTATION)
678678
man
679679

680680
# Doxygen INPUT =
681-
${PROJECT_SOURCE_DIR}/BLAS
682-
${PROJECT_SOURCE_DIR}/CBLAS
683-
${PROJECT_SOURCE_DIR}/SRC
684-
${PROJECT_SOURCE_DIR}/INSTALL
685-
${PROJECT_SOURCE_DIR}/TESTING
686-
${PROJECT_SOURCE_DIR}/DOCS/groups-usr.dox
681+
BLAS
682+
CBLAS
683+
SRC
684+
INSTALL
685+
TESTING
686+
DOCS/groups-usr.dox
687687

688688
COMMENT "Generating man LAPACK documentation"
689689
)

0 commit comments

Comments
 (0)