Skip to content

Commit

Permalink
Only require doxygen if docs are being built
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyBourne committed Oct 17, 2023
1 parent 91df782 commit 2105c6d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ find_package(paraconf REQUIRED COMPONENTS C)
## Look for a pre-installed PDI
find_package(PDI REQUIRED COMPONENTS C)

## Look for a pre-installed Doxygen
find_package(Doxygen REQUIRED OPTIONAL_COMPONENTS dot)

## if tests are enabled, use googletest from `vendor/`
### we use it to write unit tests
if("${BUILD_TESTING}")
Expand Down Expand Up @@ -99,7 +96,10 @@ endif()

## if documentation is enabled, build it
if("${BUILD_DOCUMENTATION}")
add_subdirectory(docs/)
## Look for a pre-installed Doxygen
find_package(Doxygen REQUIRED OPTIONAL_COMPONENTS dot)

add_subdirectory(docs/)
endif()

## Turn off documentation for subpackages
Expand Down

0 comments on commit 2105c6d

Please sign in to comment.