Skip to content

Commit

Permalink
Docs: Remove warning when doxygen is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
drdanz committed Jul 11, 2018
1 parent 0b10ad2 commit 39aff63
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions cmake/YarpDoc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,6 @@

include(CMakeDependentOption)

if("${DOXYGEN_VERSION}" MATCHES "([0-9]+)\.([0-9]+)\.([0-9]+)")
set(DOXYGEN_VERSION_MAJOR ${CMAKE_MATCH_1})
set(DOXYGEN_VERSION_MINOR ${CMAKE_MATCH_2})
set(DOXYGEN_VERSION_PATCH ${CMAKE_MATCH_3})
else()
message(WARNING "Unknown doxygen version")
set(DOXYGEN_VERSION_MAJOR 0)
set(DOXYGEN_VERSION_MINOR 0)
set(DOXYGEN_VERSION_PATCH 0)
endif()

find_file(DOXYGEN_PLANTUM_JAR
NAMES plantuml.jar
PATHS /usr/share
Expand All @@ -28,6 +17,17 @@ if(NOT DOXYGEN_PLANTUM_JAR)
endif()

if(DOXYGEN_FOUND)

if("${DOXYGEN_VERSION}" MATCHES "([0-9]+)\.([0-9]+)\.([0-9]+)")
set(DOXYGEN_VERSION_MAJOR ${CMAKE_MATCH_1})
set(DOXYGEN_VERSION_MINOR ${CMAKE_MATCH_2})
set(DOXYGEN_VERSION_PATCH ${CMAKE_MATCH_3})
else()
set(DOXYGEN_VERSION_MAJOR 0)
set(DOXYGEN_VERSION_MINOR 0)
set(DOXYGEN_VERSION_PATCH 0)
endif()

option(YARP_DOXYGEN_HTML "Generate doxygen HTML output" ON)
cmake_dependent_option(YARP_DOXYGEN_HTML_DOCSET "Generate doxygen docset output (for Apple's Xcode 3)" OFF
YARP_DOXYGEN_HTML OFF)
Expand Down

0 comments on commit 39aff63

Please sign in to comment.