# CMake error in SlicerExtensionCPack.cmake while configuring extension

**URL:** <https://discourse.slicer.org/t/cmake-error-in-slicerextensioncpack-cmake-while-configuring-extension/32080>\
**Category:** Support\
**Tags:** extensions, cmake\
**Created:** [October 6, 2023, 6:30pm UTC](https://discourse.slicer.org/t/cmake-error-in-slicerextensioncpack-cmake-while-configuring-extension/32080 "2023-10-06T18:30:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Post date:** [October 6, 2023, 6:30pm UTC](https://discourse.slicer.org/t/cmake-error-in-slicerextensioncpack-cmake-while-configuring-extension/32080/1 "2023-10-06T18:30:03Z")

</div>

I am getting the error below while trying to configure the build for the [SlicerIDCBrowser extension](https://github.com/ImagingDataCommons/SlicerIDCBrowser/). The error seems to be unrelated to the extension. Does anyone know how to work around it?

I am using the latest, and the same, CMake 3.27.6 for both Slicer and my extension.

```auto
$ ~/cmake-3.27.6-linux-x86_64/bin/cmake -DSlicer_DIR:PATH=../Slicer-SuperBuild/Slicer-build ../SlicerIDCBrowser
[...]
-- Checking if CPACK_INSTALL_CMAKE_PROJECTS is defined
-- Checking if CPACK_INSTALL_CMAKE_PROJECTS is defined - no
CMake Error at /home/exouser/Slicer-SuperBuild/CTKAPPLAUNCHER/CMake/ctkAppLauncher.cmake:409 (file):
  file RELATIVE_PATH must be passed a full path to the file:
  ../Slicer-SuperBuild/Slicer-build
Call Stack (most recent call first):
  /home/exouser/Slicer/CMake/SlicerExtensionCPack.cmake:324 (ctkAppLauncherConfigureForExecutable)
  CMakeLists.txt:21 (include)

-- Setting 'CTEST_MODEL' variable with default value 'Experimental'
-- Setting 'SLICER_EXTENSION_

```

All I want to do is to confirm I can build and package the extension to make sure build/package succeeds for the next nightly.

---

<div class="post-metadata">

**Author:** ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Post date:** [October 6, 2023, 9:42pm UTC](https://discourse.slicer.org/t/cmake-error-in-slicerextensioncpack-cmake-while-configuring-extension/32080/2 "2023-10-06T21:42:50Z")

</div>

The solution was trivial - I needed to use the absolute path instead of relative!

```bash
$ ~/cmake-3.27.6-linux-x86_64/bin/cmake \
  -DSlicer_DIR:PATH=`pwd`/../Slicer-SuperBuild/Slicer-build \
  `pwd`/../SlicerIDCBrowser

```
