Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cmake] Fix Doxygen call #102

Merged
merged 2 commits into from
Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Required version
cmake_minimum_required(VERSION 3.9)
cmake_minimum_required(VERSION 3.12)

# Project Version
project(SuperLU C)
Expand Down
20 changes: 12 additions & 8 deletions DOC/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ if(enable_doc)
set(_DEPENDENCY_ALL "ALL")
endif()

doxygen_add_docs(doc
"${_DEPENDENCY_ALL}"
"${CMAKE_CURRENT_SOURCE_DIR}/mainpage.txt"
"${CMAKE_CURRENT_SOURCE_DIR}/modules.txt"
"${PROJECT_SOURCE_DIR}/EXAMPLE"
"${PROJECT_SOURCE_DIR}/SRC"
"${PROJECT_SOURCE_DIR}/TESTING"
COMMENT "Generate HTML documentation with Doxygen")
if(DOXYGEN_FOUND)
doxygen_add_docs(doc
"${CMAKE_CURRENT_SOURCE_DIR}/mainpage.txt"
"${CMAKE_CURRENT_SOURCE_DIR}/modules.txt"
"${PROJECT_SOURCE_DIR}/EXAMPLE"
"${PROJECT_SOURCE_DIR}/SRC"
"${PROJECT_SOURCE_DIR}/TESTING"
"${_DEPENDENCY_ALL}"
COMMENT "Generate HTML documentation with Doxygen")
elseif(enable_doc)
message(WARNING "Disabling building documentation as Doxygen is missing.")
endif()