# Wrong OPENSSL\_INCLUDE\_DIR during SlicerCAT build on WIndows

**URL:** <https://discourse.slicer.org/t/wrong-openssl-include-dir-during-slicercat-build-on-windows/23393>\
**Category:** Development\
**Created:** [May 12, 2022, 6:23pm UTC](https://discourse.slicer.org/t/wrong-openssl-include-dir-during-slicercat-build-on-windows/23393 "2022-05-12T18:23:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![keri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/keri/32/11618_2.png) [@keri](https://discourse.slicer.org/u/keri)\
**Post date:** [May 12, 2022, 6:23pm UTC](https://discourse.slicer.org/t/wrong-openssl-include-dir-during-slicercat-build-on-windows/23393/1 "2022-05-12T18:23:07Z")

</div>

Hi,

I’m trying to build SlicerCAT with SlicerJupyter bundled using clean build on WIndows with VS 2022.  
Thus `xeus` depends on `OpenSSL`:

```auto
ExternalProject_Add_Dependencies(xeus
  DEPENDS
    OpenSSL
  )

```

But during `xeus` configuration I get:

```auto
  Performing configure step for 'xeus'
  loading initial cache file C:/C/r/slicersources-build/xeus-prefix/tmp/xeus-cache-Release.cmake
  -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000.
  -- xeus version: v2.3.1
  -- xeus binary version: v7.1.1
  -- XEUS_DISABLE_ARCH_NATIVE: OFF
  -- XEUS_BUILD_SHARED_LIBS: ON
  -- XEUS_BUILD_STATIC_LIBS: ON
  -- XEUS_STATIC_DEPENDENCIES: OFF
  -- XEUS_EMSCRIPTEN_WASM_BUILD: OFF
  -- XEUS_BUILD_TESTS: OFF
  -- XEUS_EMSCRIPTEN_WASM_TEST_BUILD: OFF
  -- tests disabled
  -- Configuring done
  CMake Error in CMakeLists.txt:
    Imported target "OpenSSL::Crypto" includes non-existent path

      "C:/C/r/OpenSSL-install/$(Configuration)/include"

    in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

    * The path was deleted, renamed, or moved to another location.

    * An install or uninstall procedure did not complete successfully.

    * The installation package was faulty and references files it does not
    provide.

```

In `xeus` cmakecache `OPENSSL_INCLUDE_DIR` is set to `C:/C/r/OpenSSL-install/$(Configuration)/include`.

I’m looking at `External_OpenSSL.cmake` but still don’t understand why there is rounded brakets in `$(Configuration)`  
It seems it goes from `SlicerBlockAdditionalLauncherSettings.cmake` but can’t understand why this is hapenning.

---

<div class="post-metadata">

**Author:** ![keri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/keri/32/11618_2.png) [@keri](https://discourse.slicer.org/u/keri)\
**Post date:** [May 12, 2022, 6:46pm UTC](https://discourse.slicer.org/t/wrong-openssl-include-dir-during-slicercat-build-on-windows/23393/2 "2022-05-12T18:46:42Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/0/602ec55f2d0d6ec1d1b13ba5619adb29d712778b.jpeg)

---

<div class="post-metadata">

**Author:** ![keri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/keri/32/11618_2.png) [@keri](https://discourse.slicer.org/u/keri)\
**Post date:** [May 12, 2022, 7:17pm UTC](https://discourse.slicer.org/t/wrong-openssl-include-dir-during-slicercat-build-on-windows/23393/3 "2022-05-12T19:17:02Z")

</div>

I see now

Slicer’s External\_OpenSSL uses [CMAKE\_CFG\_INTDIR](https://cmake.org/cmake/help/latest/variable/CMAKE_CFG_INTDIR.html) that is expanded to `$(Configuration)` at configuration time and to `Release` or `Debug` etc during build time.

Probably `xeus` tries to check whether the path exist during config time and that is why I get error
