# CMake Error: Unknown Command c\_install\_targets When Configuring Catalyst2

**URL:** https://discourse.paraview.org/t/cmake-error-unknown-command-c-install-targets-when-configuring-catalyst2/15773
**Category:** In Situ Support
**Tags:** catalyst
**Created:** [November 22, 2024, 4:39pm UTC](https://discourse.paraview.org/t/cmake-error-unknown-command-c-install-targets-when-configuring-catalyst2/15773 "2024-11-22T16:39:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Bhavesh](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/aeb1de/32.png) [@Bhavesh](https://discourse.paraview.org/u/Bhavesh)
#### Post date: [November 22, 2024, 4:39pm UTC](https://discourse.paraview.org/t/cmake-error-unknown-command-c-install-targets-when-configuring-catalyst2/15773/1 "2024-11-22T16:39:59Z")

</div>

Hi everyone,

I am trying to build Catalyst2 from the source code on a Windows 10 system using the following setup:

- **CMake Version** : 3.31.0
- **Paraview Version** : 5.12.1
- **Generator** : Ninja
- **Compilers** : GNU 14.1.0
- **Source Directory** : `~/Catalyst/src`
- **Build Directory** : `~/Catalyst/build`

I followed the [Catalyst2 Build Instructions](https://catalyst-in-situ.readthedocs.io/en/latest/build_and_install.html). However, when I try to configure using `cmake-gui`, I encounter the following error:

```auto
CMake Error at catalyst/CMakeLists.txt:159 (c_install_targets):
  Unknown CMake command "c_install_targets".

```

### **Steps I Followed**

1. Cloned the Catalyst2 repository into `My Documents` folder.
2. Created an empty `build` directory inside the repository.
3. Opened `cmake-gui` and set:
  - **Where is the source code?** : `~/Catalyst/src`
  - **Where to build the binaries?** : `~/Catalyst/build`

4. Selected the Ninja generator and clicked **Configure**.
5. Encountered the above error during configuration.

### **What I Tried**

- Verified that `c_install_targets` is defined in `catalyst-internal-macros.cmake`, which is included in the main `CMakeLists.txt` through the line:

```cmake
include(catalyst-internal-macros)

```

### **Questions**

1. Am I missing any dependencies or configurations specific to Windows when using Catalyst2 with Ninja and GNU?
2. Is there a working example or CMake configuration file showing how to set these variables correctly?

Any help or guidance would be greatly appreciated!

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [February 26, 2025, 3:48pm UTC](https://discourse.paraview.org/t/cmake-error-unknown-command-c-install-targets-when-configuring-catalyst2/15773/2 "2025-02-26T15:48:24Z")

</div>

Is this still an issue?

---

<div class="post-metadata">

### Author: ![Bhavesh](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/aeb1de/32.png) [@Bhavesh](https://discourse.paraview.org/u/Bhavesh)
#### Post date: [February 26, 2025, 7:35pm UTC](https://discourse.paraview.org/t/cmake-error-unknown-command-c-install-targets-when-configuring-catalyst2/15773/3 "2025-02-26T19:35:20Z")

</div>

No, this is no longer an issue. I was able to fix it by using the correct path for the directories.
