# Nightly build TESTS failing for extensions with dependencies to other scriptable modules

**URL:** <https://discourse.slicer.org/t/nightly-build-tests-failing-for-extensions-with-dependencies-to-other-scriptable-modules/1483>\
**Category:** Development\
**Created:** [November 17, 2017, 7:45pm UTC](https://discourse.slicer.org/t/nightly-build-tests-failing-for-extensions-with-dependencies-to-other-scriptable-modules/1483 "2017-11-17T19:45:16Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [November 17, 2017, 8:57pm UTC](https://discourse.slicer.org/t/nightly-build-tests-failing-for-extensions-with-dependencies-to-other-scriptable-modules/1483/6 "2017-11-17T20:57:51Z")

</div>

In my case the extension GelDosimetryAnalysis depends on SlicerRT. The problem locally is that the SlicerRT\_DIR CMake variable is not set. Instead it gives me this

> **CMake warning message**
>
> CMake Warning at C:/d/Slicer4/Extensions/CMake/SlicerBlockAdditionalLauncherSettings.cmake:48 (MESSAGE):  
> Dependent extension SlicerRT cannot be found by CMake find\_package(),  
> therefore paths variables cannot be imported from this extension. The  
> problem can be resolved by generating SlicerRTConfig.cmake by adding  
> include(${Slicer\_EXTENSION\_GENERATE\_CONFIG}) to the top-level  
> CMakeLists.txt of the dependent exension.  
> Call Stack (most recent call first):  
> C:/d/S4R/Slicer-build/UseSlicer.cmake:281 (include)  
> CMakeLists.txt:24 (include)

However include(${Slicer\_EXTENSION\_GENERATE\_CONFIG}) is in the top-level CMakeLists, and SlicerRT does generate a SlicerRTConfig.cmake.

If I define SlicerRT\_DIR manually, then it works nicely. It’s not done on the factory unfortunately, and this is where I am stuck now. We have a factory machine and was going to take a look at the issue on it, but I haven’t gotten to that point yet.

---

_[View the full topic](https://discourse.slicer.org/t/nightly-build-tests-failing-for-extensions-with-dependencies-to-other-scriptable-modules/1483)._
