Commit d847bcb6 authored by Manuel Grizonnet's avatar Manuel Grizonnet

BUG: mantis 1386 - don't add InDoxygenGroup test if otb_source_dir is undefined

parent e71ddd79
......@@ -61,7 +61,7 @@ macro( otb_module_doxygen _name )
@ONLY
)
endif()
if(NOT ${_name}_THIRD_PARTY AND EXISTS ${${_name}_SOURCE_DIR}/include)
if(OTB_SOURCE_DIR AND NOT ${_name}_THIRD_PARTY AND EXISTS ${${_name}_SOURCE_DIR}/include)
if(PYTHON_EXECUTABLE)
otb_add_test(NAME ${_name}InDoxygenGroup COMMAND ${PYTHON_EXECUTABLE} "${OTB_SOURCE_DIR}/Utilities/Doxygen/mcdoc.py" check ${_name} ${${_name}_SOURCE_DIR}/include)
otb_memcheck_ignore(${_name}InDoxygenGroup)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment