# OpenFHE HEXL cmake inclusion error

**URL:** https://openfhe.discourse.group/t/openfhe-hexl-cmake-inclusion-error/1622
**Category:** OpenFHE Hardware Acceleration
**Tags:** openfhe-help
**Created:** [October 5, 2024, 9:50am UTC](https://openfhe.discourse.group/t/openfhe-hexl-cmake-inclusion-error/1622 "2024-10-05T09:50:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jachiang](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/jachiang/32/197_2.png) [@jachiang](https://openfhe.discourse.group/u/jachiang)
#### Post date: [October 5, 2024, 9:50am UTC](https://openfhe.discourse.group/t/openfhe-hexl-cmake-inclusion-error/1622/1 "2024-10-05T09:50:03Z")

</div>

Hello,  
I am using the CMake template file from the [OpenFHE](https://github.com/openfheorg/openfhe-development/blob/main/CMakeLists.User.txt) repository for a project.

When installing OpenFHE with the configurator, opting for the HEXL backend seems to build and install correctly, but I am getting the following when running the CMake template above.

```auto
  The link interface of target "OPENFHEcore" contains:

    HEXL::hexl

  but the target was not found. Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  /root/repos/openfhe-configurator/openfhe-staging/openfhe-development/build/OpenFHEConfig.cmake:10 (include)
  CMakeLists.txt:23 (find_package)

CMake Error at /root/repos/openfhe-configurator/openfhe-staging/openfhe-development/build/OpenFHETargets.cmake:59 (set_target_properties):
  The link interface of target "OPENFHEpke" contains:

    HEXL::hexl

  but the target was not found. Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  /root/repos/openfhe-configurator/openfhe-staging/openfhe-development/build/OpenFHEConfig.cmake:10 (include)
  CMakeLists.txt:23 (find_package)

CMake Error at /root/repos/openfhe-configurator/openfhe-staging/openfhe-development/build/OpenFHETargets.cmake:66 (set_target_properties):
  The link interface of target "OPENFHEbinfhe" contains:

    HEXL::hexl

  but the target was not found. Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  /root/repos/openfhe-configurator/openfhe-staging/openfhe-development/build/OpenFHEConfig.cmake:10 (include)
  CMakeLists.txt:23 (find_package)

```

Any pointers greatly appreciated!

---

<div class="post-metadata">

### Author: ![jachiang](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/jachiang/32/197_2.png) [@jachiang](https://openfhe.discourse.group/u/jachiang)
#### Post date: [October 5, 2024, 10:56am UTC](https://openfhe.discourse.group/t/openfhe-hexl-cmake-inclusion-error/1622/2 "2024-10-05T10:56:06Z")

</div>

I just saw this CMake template in the openfhe-hexl repository. Using this solved my issue: [openfhe-hexl/CMakeLists.User.txt at main · openfheorg/openfhe-hexl · GitHub](https://github.com/openfheorg/openfhe-hexl/blob/main/CMakeLists.User.txt)
