Extension dependency not found


(Adam Rankin) #1

Hello all,

Looking into why our extension didn’t build:
http://slicer.cdash.org/viewConfigure.php?buildid=1518975

Is there something obvious I’m missing? I added the dependency to SlicerVirtualReality in EXTENSION_DEPENDS


(Kyle Sunderland) #2

Possibly because SlicerVirtualReality is not listed as a dependency in the ExtensionsIndex?


(Jean Christophe Fillion Robin) #3

Indeed, without this … the extension build system doesn’t know which folder to pass along.


(Adam Rankin) #4

Ah, I thought the dependencies were detected from EXTENSION_DEPENDS. Ok, I’ll fix that.


(Jean Christophe Fillion Robin) #5

Indirectly yes.

(1) Metadata are listed in CMakeLists.txt -> (2) generate description file in build directory -> (3) description file added to the extension index.

In a nutshell, it is important to keep information consistent between description file and CMakeLists.txt.

Also, since the build system need to know an extension dependency before configuring it … it can not only be in the extension CMakeLists.txt, it needs to be available by some other way.