Page MenuHomePhabricator

DOXYGEN_EXECUTABLE overwritten by BlueBerryConfig.cmake for projects using MITK as external lib
Closed, WontfixPublic

Description

Hi,
while generating my external mitk based application I had problems to let BLUEBERRY_USE_QT_HELP stay on while using a doxygen executable that is placed in a different folder compared to the mitk build.

In BlueBerryConfig.cmake generated by BlueBerry/BlueBerryConfig.cmake.in the cmake variable DOXYGEN_EXECUTABLE is overwritten in case it was defined before.

set(DOXYGEN_EXECUTABLE "@DOXYGEN_EXECUTABLE@"
or generated:
set(DOXYGEN_EXECUTABLE "C:/Programs/doxygen_1.8.7/doxygen.exe")

External projects that define the variable DOXYGEN_EXECUTABLE before calling find_package(mitk) in order to set it to a different location or even version should be allowed to do that.

BlueBerryConfig.cmake.in should be changed to call (ln 16):

set(DOXYGEN_EXECUTABLE "@DOXYGEN_EXECUTABLE@" CACHE FILEPATH "Doxygen executable")

to make it possible to define the variable first and then not to overwriting it.

I will create a branch in my Github fork in case it is interesting for others.

Event Timeline

Thank you, Ingmar! Sorry, just fell over this bug today as I clean up the 2015-03 bugs.

kislinsk claimed this task.
kislinsk added a project: Auto-closed.

Hi there! 🙂

This task was auto-closed according to our Task Lifecycle Management.
Please follow this link for more information and don't forget that you are encouraged to reasonable re-open tasks to revive them. 🚑

Best wishes,
The MITK devs

kislinsk removed kislinsk as the assignee of this task.May 26 2020, 12:05 PM
kislinsk removed a subscriber: kislinsk.